commit | 5b2af6ad405c09fc77ae5f016741a764455bfdd5 | [log] [tgz] |
---|---|---|
author | Javier Wong <bohlian@gmail.com> | Mon Jul 25 16:49:39 2016 +0800 |
committer | Javier Wong <bohlian@gmail.com> | Mon Jul 25 16:49:39 2016 +0800 |
tree | 29cb66690df28f6cb5df014428202f21f994db37 | |
parent | 00f7741288903377a27eeebec8fc2913b8cc909b [diff] |
[Fixed] Stopping and Re-Opening of Production Order
diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index cd24f9b..2b173bf 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py
@@ -112,8 +112,10 @@ def update_status(self, status=None): - '''Update status of production order''' - status = self.get_status() + '''Update status of production order if unknown''' + if not status: + status = self.get_status() + if status != self.status: self.db_set("status", status)