From c9825805dbed35dcf9a5fb127a3a33ed7424844e Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Mon, 26 Feb 2024 17:10:34 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=A7=A3=E9=99=A4=E8=A3=85=E5=A4=B9?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=97=B6=E8=A7=A3=E9=99=A4RFID=E7=A0=81?= =?UTF-8?q?=E5=92=8C=E5=B7=A5=E5=8D=95=E7=9A=84=E7=BB=91=E5=AE=9A=E5=85=B3?= =?UTF-8?q?=E7=B3=BB?= 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, 2 insertions(+) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 06596db8..72d28f4d 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -622,6 +622,8 @@ class ResMrpWorkOrder(models.Model): if workorder.state != 'done': is_production_id = False if is_production_id == True and self.name == '解除装夹': + for workorder in self.production_id.workorder_ids: + workorder.rfid_code = None for move_raw_id in self.production_id.move_raw_ids: move_raw_id.quantity_done = move_raw_id.product_uom_qty self.production_id.button_mark_done1()