Merge pull request #1687 from nabinhait/v4-hotfix
Update status based on communication. Fixes #1682
This commit is contained in:
commit
c1d0851a56
@ -87,7 +87,7 @@ class StatusUpdater(Document):
|
||||
frappe.db.set_value(self.doctype, self.name, "status", self.status)
|
||||
|
||||
def on_communication(self):
|
||||
if not self.get("communication"): return
|
||||
if not self.get("communications"): return
|
||||
self.communication_set = True
|
||||
self.get("communications").sort(key=lambda d: d.creation)
|
||||
self.set_status(update=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user