From d2a8dc9a6df58361b0d3ac133704db120e2f1eaf Mon Sep 17 00:00:00 2001
From: svs-odoo
Date: Wed, 16 Dec 2020 10:35:52 +0000
Subject: [PATCH] [FIX] mrp: hide operations for archived BOM
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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
---
addons/mrp/views/mrp_routing_views.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/addons/mrp/views/mrp_routing_views.xml b/addons/mrp/views/mrp_routing_views.xml
index 3de2e10fa9f..2e36cd8a9ef 100644
--- a/addons/mrp/views/mrp_routing_views.xml
+++ b/addons/mrp/views/mrp_routing_views.xml
@@ -111,6 +111,7 @@
Each operation is done at a specific Work Center and has a specific duration.
+ ['|', ('bom_id', '=', False), ('bom_id.active', '=', True)]