[FIX] mrp: hide operations for archived BOM

Before this commit, the operations for archived bills of materials are
still displayed in the operations list view. This commit adds a domain
on the action to hide them.

task-2417937

closes odoo/odoo#72483

X-original-commit: 1ca17dc750f6b9582acff659d9c32739fa28a1c2
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
This commit is contained in:
svs-odoo
2021-06-21 17:36:17 +00:00
committed by Rémy Voet (ryv)
parent fa738e5101
commit d2a8dc9a6d
+1
View File
@@ -111,6 +111,7 @@
Each operation is done at a specific Work Center and has a specific duration.
</p>
</field>
<field name="domain">['|', ('bom_id', '=', False), ('bom_id.active', '=', True)]</field>
</record>
<record id="mrp_routing_workcenter_filter" model="ir.ui.view">