Merge pull request #38562 from shariquerik/existing-customer-issue-in-lead

This commit is contained in:
Shariq Ansari 2023-12-04 19:20:29 +05:30 committed by GitHub
commit 27aba02d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ class Lead(SellingController, CRMNote):
if self.source == "Existing Customer" and self.customer:
contact = frappe.db.get_value(
"Dynamic Link",
{"link_doctype": "Customer", "link_name": self.customer},
{"link_doctype": "Customer", "parenttype": "Contact", "link_name": self.customer},
"parent",
)
if contact: