Merge pull request #1689 from rmehta/develop
fix to pos invoice
diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py
index bbcd143..0e4ac31 100644
--- a/erpnext/controllers/status_updater.py
+++ b/erpnext/controllers/status_updater.py
@@ -87,7 +87,7 @@
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)