mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 03:28:32 +00:00
[fix] [communication] on communication send, update status
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user