mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
added on_trash for support ticket
This commit is contained in:
@@ -147,3 +147,7 @@ class DocType(TransactionBase):
|
|||||||
def reopen_ticket(self):
|
def reopen_ticket(self):
|
||||||
webnotes.conn.set(self.doc,'status','Open')
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user