diff --git a/product_configurator_mrp/models/product_config.py b/product_configurator_mrp/models/product_config.py index 7fa23dbbc..7c603c25f 100644 --- a/product_configurator_mrp/models/product_config.py +++ b/product_configurator_mrp/models/product_config.py @@ -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 @@ -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")