diff --git a/sf_tool_management/models/mrp_workorder.py b/sf_tool_management/models/mrp_workorder.py index 0a1a6447..62c83a6e 100644 --- a/sf_tool_management/models/mrp_workorder.py +++ b/sf_tool_management/models/mrp_workorder.py @@ -43,7 +43,7 @@ class CNCprocessing(models.Model): if production_name not in list(datas['缺刀'].keys()): datas['缺刀'].update({production_name: {processing_panel: []}}) datas['无效刀'].update({production_name: {processing_panel: []}}) - production_ids.append(cnc_processing.production_id) + production_ids.append(cnc_processing.workorder_id.production_id) else: if processing_panel not in list[datas['缺刀'].get(production_name).keys()]: datas['缺刀'].get(production_name).update({processing_panel: []})