fix: sider issues

This commit is contained in:
Anupam 2021-07-29 10:43:21 +05:30
parent 47a651a80f
commit a6ce1244a0
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ class Lead(SellingController):
if d.link_doctype == self.doctype and d.link_name == self.name: if d.link_doctype == self.doctype and d.link_name == self.name:
to_remove = d to_remove = d
if to_remove: if to_remove:
link_doctype.remove(to_remove) linked_doc.remove(to_remove)
def has_customer(self): def has_customer(self):
return frappe.db.get_value("Customer", {"lead_name": self.name}) return frappe.db.get_value("Customer", {"lead_name": self.name})