From 6629bb802c7b6d40ee85ee18b7a58b93fdb42e17 Mon Sep 17 00:00:00 2001 From: clesgow Date: Thu, 24 Aug 2023 12:50:20 +0000 Subject: [PATCH] [FIX] mrp: allow access to workorder tree view Following 332c117, the list of workorders cannot be accessed from the menu. This is due to the `parent` not being defined in this case. The `column_invisible` clause is useful when using the tree view from within a MO form. Before the change, the `attrs` attribute (containing the `column_invisible` clause) was overwritten in the inherited view that is accessible from the menu. Now that each previously-attrs are separate, we need to explicitely overwrite `column_invisible` to get rid of the reference to `parent`. closes odoo/odoo#133026 Signed-off-by: Tiffany Chang (tic) --- addons/mrp/views/mrp_workorder_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml index d76c5576276..ce96519f612 100644 --- a/addons/mrp/views/mrp_workorder_views.xml +++ b/addons/mrp/views/mrp_workorder_views.xml @@ -127,6 +127,7 @@ production_state == 'draft' + False