[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 <kba@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
# ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user