diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 2e865b43729..1188be5ad12 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -68,9 +68,8 @@ class StatusUpdater(Document): if self.is_new(): return - _status = self.status - if self.doctype in status_map: + _status = self.status sl = status_map[self.doctype][:] sl.reverse() for s in sl: