mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] mrp_bom_hierarchy : Migration to 15.0
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user