mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fix: get dynamic link with parenttype contact
This commit is contained in:
@@ -105,7 +105,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user