mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
refactor(customer): replace SQL with ORM in on_trash (#55211)
This commit is contained in:
@@ -405,7 +405,7 @@ class Customer(TransactionBase):
|
|||||||
|
|
||||||
delete_contact_and_address("Customer", self.name)
|
delete_contact_and_address("Customer", self.name)
|
||||||
if self.lead_name:
|
if self.lead_name:
|
||||||
frappe.db.sql("update `tabLead` set status='Interested' where name=%s", self.lead_name)
|
frappe.db.set_value("Lead", self.lead_name, "status", "Interested")
|
||||||
|
|
||||||
def before_rename(self, olddn, newdn, merge=False):
|
def before_rename(self, olddn, newdn, merge=False):
|
||||||
if merge:
|
if merge:
|
||||||
|
|||||||
Reference in New Issue
Block a user