From 80cd385df48f0729c20e2447d68fb4517c206181 Mon Sep 17 00:00:00 2001 From: "jinling.yang" Date: Sat, 18 May 2024 17:30:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=97=B6=E5=88=B6=E9=80=A0=E8=AE=A2=E5=8D=95=E6=9C=AA?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 088e6bf7..dee1258a 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -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