mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
on deletion of lead, delete communication
This commit is contained in:
@@ -97,7 +97,6 @@ class DocType(SellingController):
|
|||||||
return webnotes.conn.get_value('Sales Email Settings',None,'email_id')
|
return webnotes.conn.get_value('Sales Email Settings',None,'email_id')
|
||||||
|
|
||||||
def on_trash(self):
|
def on_trash(self):
|
||||||
webnotes.conn.sql("""delete from tabCommunication where lead=%s""",
|
webnotes.conn.sql("""update tabCommunication set lead=null where lead=%s""", self.doc.name)
|
||||||
self.doc.name)
|
|
||||||
webnotes.conn.sql("""update `tabSupport Ticket` set lead='' where lead=%s""",
|
webnotes.conn.sql("""update `tabSupport Ticket` set lead='' where lead=%s""",
|
||||||
self.doc.name)
|
self.doc.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user