diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index e0d0a09b7df..ca181f12c14 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -183,7 +183,7 @@ class Task(models.Model): _name = "project.task" _inherit = "project.task" - analytic_account_active = fields.Boolean("Active Analytic Account", compute='_compute_analytic_account_active') + analytic_account_active = fields.Boolean("Active Analytic Account", compute='_compute_analytic_account_active', compute_sudo=True) allow_timesheets = fields.Boolean("Allow timesheets", related='project_id.allow_timesheets', help="Timesheets can be logged on this task.", readonly=True) remaining_hours = fields.Float("Remaining Hours", compute='_compute_remaining_hours', store=True, readonly=True, help="Total remaining time, can be re-estimated periodically by the assignee of the task.") effective_hours = fields.Float("Hours Spent", compute='_compute_effective_hours', compute_sudo=True, store=True, help="Time spent on this task, excluding its sub-tasks.")