[fix] [minor] communication related cleanup

This commit is contained in:
Anand Doshi
2013-09-12 19:10:05 +05:30
parent 24416f92cc
commit 3a6f4f882a
7 changed files with 9 additions and 30 deletions

View File

@@ -21,9 +21,4 @@ class DocType(TransactionBase):
else:
status = "Open"
webnotes.conn.set(self.doc, 'status', status)
def on_trash(self):
webnotes.conn.sql("""delete from `tabCommunication`
where job_applicant=%s""", self.doc.name)
webnotes.conn.set(self.doc, 'status', status)