diff --git a/mrp_bom_location/report/bom_structure.py b/mrp_bom_location/report/bom_structure.py index fa9dcf778..68b1d451a 100644 --- a/mrp_bom_location/report/bom_structure.py +++ b/mrp_bom_location/report/bom_structure.py @@ -36,7 +36,7 @@ class BomStructureReport(models.AbstractModel): line_ids = self.env["mrp.bom.line"].search([("bom_id", "=", bom.id)]) for line in res["components"]: bom_line = line_ids.filtered( - lambda l: l.location_id and l.product_id == line["product_id"] + lambda l: l.location_id and l.product_id.id == line["product_id"] ) line["location_id"] = bom_line.location_id or "" if parent_bom and parent_bom.location_id.complete_name: