From 73c9820e825e30cb88495c6735339882699a18f7 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 27 Dec 2022 18:28:36 +0530 Subject: [PATCH] fix: Customer Primary Contact (backport #33424) (#33440) fix: Customer Primary Contact (#33424) Co-authored-by: Nihantra C. Patel (cherry picked from commit 7d9f3f23dde6efd6fc3f218d48a3828dd9aa1133) Co-authored-by: Solufyin <34390782+Solufyin@users.noreply.github.com> --- erpnext/selling/doctype/customer/customer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 60c33567bef..146ebbd7dfe 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -740,7 +740,7 @@ def get_customer_primary_contact(doctype, txt, searchfield, start, page_len, fil qb.from_(con) .join(dlink) .on(con.name == dlink.parent) - .select(con.name, con.full_name, con.email_id) + .select(con.name, con.email_id) .where((dlink.link_name == customer) & (con.name.like(f"%{txt}%"))) .run() )