Skip to content

Commit

Permalink
[16.0][FIX] mrp_bom_import: AttributeError: 'mrp.bom.line.import' obj…
Browse files Browse the repository at this point in the history
…ect has no attribute 'bom_count'. Did you mean: 'bom_code'?
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Nov 12, 2024
1 parent c3d5e12 commit cc1bb49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrp_bom_import/models/mrp_bom_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit cc1bb49

Please sign in to comment.