[FIX] project : portal user view parent task
How to reproduce the bug :
- Go to one project from portal user
- Open a task
- Create a subtask of this task
- Open the subtask
- Click on "Parent Task" button
=> Traceback
Fix :
- The search view is not loaded when opening the parent task
- We add manually the search view id in the action opening the
parent
taskid:3551354
closes odoo/odoo#156183
X-original-commit: 536638a92d6d7b242e27ae6f73431c61267b4eeb
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -1567,6 +1567,7 @@ class Task(models.Model):
|
||||
'search_view_ref': 'project.project_sharing_project_task_view_search',
|
||||
}).action_open_parent_task()
|
||||
action['views'] = [(self.env.ref('project.project_sharing_project_task_view_form').id, 'form')]
|
||||
action['search_view_id'] = self.env.ref("project.project_sharing_project_task_view_search").id
|
||||
return action
|
||||
|
||||
# ------------
|
||||
|
||||
Reference in New Issue
Block a user