mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[16.0][IMP] mrp_bom_location: logic operator warning
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user