From c4069995e02e9ac7e34a6b7d67e15d4bfb2a009e Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Thu, 19 Sep 2024 14:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=99=A4=E8=A3=85=E5=A4=B9=E5=A4=84?= =?UTF-8?q?=EF=BC=8C=E6=89=AB=E7=A0=81=E5=90=8C=E6=AD=A5=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=88=90=E5=93=81=E6=9D=A1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/wizard/workpiece_delivery_wizard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sf_manufacturing/wizard/workpiece_delivery_wizard.py b/sf_manufacturing/wizard/workpiece_delivery_wizard.py index 472910f9..1983bfaf 100644 --- a/sf_manufacturing/wizard/workpiece_delivery_wizard.py +++ b/sf_manufacturing/wizard/workpiece_delivery_wizard.py @@ -206,6 +206,9 @@ class WorkpieceDeliveryWizard(models.TransientModel): workorder.production_line_id.id != self.production_ids[0].production_line_id.id): raise UserError(f'该rfid对应的制造订单号为{workorder.production_id.name}的目的生产线不一致') + # 调用打印成品条码方法 + workorder.print_method() + # 将对象添加到对应的同模型且是多对多类型里 self.production_ids |= workorder.production_id self.workorder_ids |= workorder