Merge pull request #38564 from frappe/mergify/bp/version-15-hotfix/pr-38562
fix: get dynamic link with parenttype contact (backport #38562)
This commit is contained in:
commit
39e04b119a
@ -103,7 +103,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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user