From 7330243e30f3eef530b6e1537574fbf1399b45db Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Mon, 15 Nov 2021 15:43:15 +0000 Subject: [PATCH] [FIX] project_mrp: remove gantt view from action_view_workorder action Prior to this commit: * The `action_view_workorder` was wrongly returning a view_mode containing the gantt view, which is part of enterprise. After this commit: * The `action_view_workorder` will return a community valid view_mode. closes #79785 closes odoo/odoo#79797 X-original-commit: 13f6ff19a4d7e5a58310a548c0514ecb3c94e448 Related: odoo/enterprise#22264 Signed-off-by: Kevin Baptiste --- addons/project_mrp/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_mrp/models/project.py b/addons/project_mrp/models/project.py index 6f874ad4541..fe98c8d9f39 100644 --- a/addons/project_mrp/models/project.py +++ b/addons/project_mrp/models/project.py @@ -29,7 +29,7 @@ class Project(models.Model): self.ensure_one() action = self.analytic_account_id.action_view_workorder() if self.workorder_count > 1: - action['view_mode'] = 'tree,form,kanban,calendar,pivot,graph,gantt' + action['view_mode'] = 'tree,form,kanban,calendar,pivot,graph' return action # ----------------------------