From 167c280fa43e0483ee9620d4f3f173efdab2e91b Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Tue, 23 Jul 2024 11:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95cnc?= =?UTF-8?q?=E6=A0=A1=E9=AA=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_tool_management/models/mrp_workorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: []})