diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 6e6a543a..cdf22156 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -953,9 +953,9 @@ class ResMrpWorkOrder(models.Model): elif workorder.production_id.reservation_state != 'assigned': workorder.state = 'waiting' continue - if workorder.production_id.tool_state in ['1', '2'] and workorder.state == 'ready': - workorder.state = 'waiting' - continue + if workorder.production_id.tool_state in ['1', '2'] and workorder.state == 'ready': + workorder.state = 'waiting' + continue logging.info('工序:%s' % workorder.sequence) logging.info('工单最终状态:%s' % workorder.state)