Skip to content

Commit

Permalink
[IMP]product_configurator_mrp: Parent Bom Type for New Variant of Pro…
Browse files Browse the repository at this point in the history
…duct.
  • Loading branch information
Vandan-OSI committed Jun 5, 2024
1 parent 1662454 commit e9e2828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions product_configurator_mrp/models/product_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def create_get_bom(self, variant, product_tmpl_id=None, values=None):
order="sequence asc",
limit=1,
)
bom_type = parent_bom and parent_bom.type or "normal"
bom_lines = []
if not parent_bom:
# If not Bom, then Cycle through attributes to add their
Expand Down Expand Up @@ -113,6 +114,7 @@ def create_get_bom(self, variant, product_tmpl_id=None, values=None):
bom_values = {
"product_tmpl_id": self.product_tmpl_id.id,
"product_id": variant.id,
"type": bom_type,
"bom_line_ids": bom_lines,
}
specs = self.get_onchange_specifications(model="mrp.bom")
Expand Down

0 comments on commit e9e2828

Please sign in to comment.