修复工单完成时制造订单未完成
This commit is contained in:
@@ -899,7 +899,7 @@ class ResMrpWorkOrder(models.Model):
|
||||
for workorder in record.production_id.workorder_ids:
|
||||
if workorder.state != 'done':
|
||||
is_production_id = False
|
||||
if is_production_id == True and record.name == '解除装夹':
|
||||
if is_production_id is True and record.routing_type in ['解除装夹', '表面工艺']:
|
||||
for workorder in record.production_id.workorder_ids:
|
||||
workorder.rfid_code_old = workorder.rfid_code
|
||||
workorder.rfid_code = None
|
||||
|
||||
Reference in New Issue
Block a user