From 79ce36c19f3369754f44baab935081c343ab0ef1 Mon Sep 17 00:00:00 2001 From: Anupam Date: Tue, 18 Jan 2022 16:36:40 +0530 Subject: [PATCH] fix: sider issue --- erpnext/selling/doctype/customer/customer.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index fc9bcc9b934..df3d9e862e5 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -179,15 +179,15 @@ class Customer(TransactionBase): def link_lead_address_contact(self): if self.lead_name: # assign lead address to customer (if already not set) - linked_contacts_and_addresses = frappe.get_all('Dynamic Link', filters=[ - ["parenttype", "in", ["Contact", "Address"]], - ["link_doctype", "=", "Lead"], - ["link_name", "=", self.lead_name] - ], fields=[ - "parent as name", - "parenttype as doctype" - ] - ) + linked_contacts_and_addresses = frappe.get_all( + "Dynamic Link", + filters=[ + ["parenttype", "in", ["Contact", "Address"]], + ["link_doctype", "=", "Lead"], + ["link_name", "=", self.lead_name], + ], + fields=["parent as name", "parenttype as doctype"], + ) for row in linked_contacts_and_addresses: linked_doc = frappe.get_doc(row.doctype, row.name)