refactored communication and added to Lead / Contact

This commit is contained in:
Rushabh Mehta
2012-11-27 18:43:19 +05:30
14 changed files with 29 additions and 9 deletions

View File

@@ -58,5 +58,5 @@ class DocType(TransactionBase):
update_feed(self.doc)
def on_trash(self):
webnotes.conn.sql("""update `tabCommunication` set support_ticket=""
where support_ticket=%s`""", self.doc.name)
webnotes.conn.sql("""update `tabCommunication` set support_ticket=NULL
where support_ticket=%s""", (self.doc.name,))