mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[fix] [communication] on communication send, update status
This commit is contained in:
@@ -28,9 +28,10 @@ class DocType(SellingController):
|
||||
if customer:
|
||||
self.doc.fields["__is_customer"] = customer
|
||||
|
||||
def on_communication_sent(self, comm):
|
||||
if webnotes.conn.get_value("Profile", comm.sender, "user_type")=="System User":
|
||||
status = "Replied"
|
||||
def on_communication(self, comm):
|
||||
if comm.sender == self.get_sender(comm) or \
|
||||
webnotes.conn.get_value("Profile", comm.sender, "user_type")=="System User":
|
||||
status = "Replied"
|
||||
else:
|
||||
status = "Open"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user