报错处理

This commit is contained in:
liaodanlong
2025-03-24 16:06:11 +08:00
parent db4dd33709
commit 33fabc068a

View File

@@ -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