From cc1bb49311c213bbf13fb0dc58107d2440b4202e Mon Sep 17 00:00:00 2001 From: Alfredo Date: Tue, 12 Nov 2024 11:53:03 +0100 Subject: [PATCH] [16.0][FIX] mrp_bom_import: AttributeError: 'mrp.bom.line.import' object has no attribute 'bom_count'. Did you mean: 'bom_code'? --- mrp_bom_import/models/mrp_bom_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrp_bom_import/models/mrp_bom_import.py b/mrp_bom_import/models/mrp_bom_import.py index 6f9da5a1..b40c4056 100644 --- a/mrp_bom_import/models/mrp_bom_import.py +++ b/mrp_bom_import/models/mrp_bom_import.py @@ -381,8 +381,8 @@ def _create_bom(self): bom_ref = self.bom_ref if not bom_ref: bom_ref = self.bom_product_id.default_code or self.bom_product_id.name - if self.bom_count: - bom_ref = f"{bom_ref}-{self.bom_count + 1}" + if self.bom_import_id.bom_count: + bom_ref = f"{bom_ref}-{self.bom_import_id.bom_count + 1}" bom = self.env["mrp.bom"].create( {