[fix] [communication] on communication send, update status

This commit is contained in:
Anand Doshi
2013-09-04 17:38:29 +05:30
parent 090d410498
commit d01f0cb46e
4 changed files with 22 additions and 4 deletions

View File

@@ -34,7 +34,10 @@ class DocType(TransactionBase):
clear(self.doc.doctype, self.doc.name)
def on_communication_sent(self, comm):
self.doc.status = "Waiting for Customer"
if webnotes.conn.get_value("Profile", comm.sender, "user_type")=="System User":
self.doc.status = "Waiting for Customer"
else:
self.doc.status = "Open"
self.update_status()
self.doc.save()