[FIX] project: remove gantt and map views from project.task actions
Prior to this commit:
* The `action_dependent_tasks` and `action_recurring_tasks` were wrongly
returning a view_mode containing the gantt and map views, which are part
of enterprise.
After this commit:
* The `action_dependent_tasks` and `action_recurring_tasks` will return a
community valid view_mode.
closes #79785
Related to issue https://github.com/odoo/odoo/issues/79555
X-original-commit: c2e1a3133e2a9cff2db8ceb86d242930e17480e2
Part-of: odoo/odoo#79797
This commit is contained in:
committed by
Laurent Stukkens (LTU)
parent
919cc3314c
commit
1d908a14eb
@@ -2096,7 +2096,7 @@ class Task(models.Model):
|
||||
action['res_id'] = self.dependent_ids.id
|
||||
else:
|
||||
action['name'] = _('Dependent Tasks')
|
||||
action['view_mode'] = 'tree,form,kanban,calendar,pivot,graph,gantt,activity,map'
|
||||
action['view_mode'] = 'tree,form,kanban,calendar,pivot,graph,activity'
|
||||
action['domain'] = [('depend_on_ids', '=', self.id)]
|
||||
return action
|
||||
|
||||
@@ -2105,7 +2105,7 @@ class Task(models.Model):
|
||||
'name': 'Tasks in Recurrence',
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'project.task',
|
||||
'view_mode': 'tree,form,kanban,calendar,pivot,graph,gantt,activity,map',
|
||||
'view_mode': 'tree,form,kanban,calendar,pivot,graph,activity',
|
||||
'context': {'create': False},
|
||||
'domain': [('recurrence_id', 'in', self.recurrence_id.ids)],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user