diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 0f29d2fd..09f08c0b 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -1288,7 +1288,7 @@ class ResMrpWorkOrder(models.Model): 'test_results': record.test_results, 'test_report': record.detection_report})], 'is_scrap': True if record.test_results == '报废' else False, - 'state': 'rework' if (record.routing_type != 'CNC加工' and record.test_results == '返工') else record.state + 'state': 'rework' if (record.routing_type != 'CNC加工' and record.test_results == '返工') else record.production_id.state }) if record.routing_type == '解除装夹': '''