fix: get dynamic link with parenttype contact
(cherry picked from commit 3d7ad71b22578e46366639ef19de8d665a922c04)
This commit is contained in:
parent
88d2a8d668
commit
cb9589b8ef
@ -103,7 +103,7 @@ class Lead(SellingController, CRMNote):
|
|||||||
if self.source == "Existing Customer" and self.customer:
|
if self.source == "Existing Customer" and self.customer:
|
||||||
contact = frappe.db.get_value(
|
contact = frappe.db.get_value(
|
||||||
"Dynamic Link",
|
"Dynamic Link",
|
||||||
{"link_doctype": "Customer", "link_name": self.customer},
|
{"link_doctype": "Customer", "parenttype": "Contact", "link_name": self.customer},
|
||||||
"parent",
|
"parent",
|
||||||
)
|
)
|
||||||
if contact:
|
if contact:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user