mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] project_task_line: access error on action for low level users
This commit is contained in:
committed by
Cedric Collins
parent
44d77eba6d
commit
be7ba2754e
@@ -15,7 +15,7 @@ class ProjectTask(models.Model):
|
||||
task.subtask_count_done = len(subtasks.filtered(lambda t: t.stage_id.is_closed))
|
||||
|
||||
def action_subtask(self):
|
||||
action = self.env.ref('project.action_view_all_task').read()[0]
|
||||
action = self.env.ref('project.action_view_all_task').sudo().read()[0]
|
||||
|
||||
# display all subtasks of current task
|
||||
action['domain'] = [('id', 'child_of', self.id), ('id', '!=', self.id)]
|
||||
|
||||
Reference in New Issue
Block a user