mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[Fixed] Stopping and Re-Opening of Production Order
This commit is contained in:
@@ -112,8 +112,10 @@ class ProductionOrder(Document):
|
|||||||
|
|
||||||
|
|
||||||
def update_status(self, status=None):
|
def update_status(self, status=None):
|
||||||
'''Update status of production order'''
|
'''Update status of production order if unknown'''
|
||||||
status = self.get_status()
|
if not status:
|
||||||
|
status = self.get_status()
|
||||||
|
|
||||||
if status != self.status:
|
if status != self.status:
|
||||||
self.db_set("status", status)
|
self.db_set("status", status)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user