From f06951958d696eea4dd54fe0e04961cf1e6e5611 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Wed, 26 Feb 2025 09:54:08 +0800 Subject: [PATCH] =?UTF-8?q?sf-=E5=B7=A5=E5=8E=82=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=8E=A5=E5=8D=95-=E5=8F=96=E6=B6=88=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/wizard/sale_order_cancel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/wizard/sale_order_cancel.py b/sf_manufacturing/wizard/sale_order_cancel.py index 3c512c02..52b929ee 100644 --- a/sf_manufacturing/wizard/sale_order_cancel.py +++ b/sf_manufacturing/wizard/sale_order_cancel.py @@ -287,7 +287,7 @@ class SFSaleOrderCancelLine(models.TransientModel): f += 1 flag = False if picking.state not in ['draft', 'cancel', 'waiting'] or ( - picking.name == '客供料入库' and picking.state not in ['cancel', 'ready']): + picking.picking_type_id.name == '客供料入库' and picking.state not in ['cancel', 'ready']): flag = True vals = { 'wizard_id': wizard_id,