From 0f47b4b8c34dec1ce10fe5ee9b21248a036dd27e Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Wed, 7 Aug 2024 09:44:04 +0800 Subject: [PATCH] =?UTF-8?q?bom=E5=8E=9F=E6=9D=90=E6=96=99=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=99=90=E5=88=B6=E5=8F=AA=E6=8B=BF=E4=B8=80=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_dlm/models/product_supplierinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_dlm/models/product_supplierinfo.py b/sf_dlm/models/product_supplierinfo.py index 05191b44..a46f4856 100644 --- a/sf_dlm/models/product_supplierinfo.py +++ b/sf_dlm/models/product_supplierinfo.py @@ -122,7 +122,7 @@ class ResMrpBomMo(models.Model): # 查bom的原材料 def get_raw_bom(self, product): raw_bom = self.env['product.product'].search( - [('categ_id.type', '=', '原材料'), ('materials_type_id', '=', product.materials_type_id.id)]) + [('categ_id.type', '=', '原材料'), ('materials_type_id', '=', product.materials_type_id.id)],limit=1) return raw_bom