From 33fabc068a21519111101ebe6183549f9afddc94 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Mon, 24 Mar 2025 16:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/sale_order.py b/sf_manufacturing/models/sale_order.py index 225f6fe5..c8cc129d 100644 --- a/sf_manufacturing/models/sale_order.py +++ b/sf_manufacturing/models/sale_order.py @@ -163,7 +163,7 @@ class SaleOrder(models.Model): 'purchase', product_seria, product) - if purchase_embryo == -3: + if purchase_embryo and purchase_embryo == -3: raise UserError('该订单模型的材料型号暂未设置获取方式和供应商,请先配置再进行分配') else: # 产品配置bom