Skip to content
Snippets Groups Projects
Unverified Commit adc97120 authored by Richard Mathot's avatar Richard Mathot
Browse files

[FIX] hr_timesheet: missing compute_sudo

opw-1862271
parent 07023137
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class AccountAnalyticLine(models.Model):
project_id = fields.Many2one('project.project', 'Project', domain=[('allow_timesheets', '=', True)])
employee_id = fields.Many2one('hr.employee', "Employee")
department_id = fields.Many2one('hr.department', "Department", compute='_compute_department_id', store=True)
department_id = fields.Many2one('hr.department', "Department", compute='_compute_department_id', store=True, compute_sudo=True)
@api.onchange('project_id')
def onchange_project_id(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment