[MIG] mrp_bom_hierarchy : Migration to 15.0

This commit is contained in:
AnnaPForgeFlow
2022-06-23 12:50:48 +02:00
parent cd0afdfbc1
commit 36bfa89718
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "MRP BoM Hierarchy",
"summary": "Make it easy to navigate through BoM hierarchy.",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"category": "Manufacturing",
"depends": ["mrp"],

View File

@@ -176,9 +176,10 @@ class MrpBomLine(models.Model):
@api.depends("product_id", "bom_id")
def _compute_child_bom_id(self):
super()._compute_child_bom_id()
res = super()._compute_child_bom_id()
for line in self:
line.has_bom = bool(line.child_bom_id)
return res
def action_open_product_bom_tree_view(self):
self.ensure_one()