added on_trash for support ticket

This commit is contained in:
Rushabh Mehta 2012-11-26 14:52:13 +05:30
parent 1d49c61283
commit f0a19a2763

View File

@ -146,4 +146,8 @@ class DocType(TransactionBase):
def reopen_ticket(self):
webnotes.conn.set(self.doc,'status','Open')
update_feed(self.doc)
update_feed(self.doc)
def on_trash(self):
webnotes.conn.sql("""update `tabCommunication set support_ticket=""
where support_ticket=%s`""", self.doc.name)