[Fixed] Stopping and Re-Opening of Production Order

This commit is contained in:
Javier Wong 2016-07-25 16:49:39 +08:00
parent 00f7741288
commit 5b2af6ad40

View File

@ -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)