From ea388121fcefb2ee6664c08696937896f6807743 Mon Sep 17 00:00:00 2001 From: SergiCForgeFlow Date: Tue, 26 Sep 2023 15:36:46 +0200 Subject: [PATCH] [16.0][IMP] mrp_bom_location: logic operator warning --- mrp_bom_location/report/bom_structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: