[FIX] hr_timesheet: missing compute_sudo

opw-1862271
This commit is contained in:
Richard Mathot
2018-07-26 17:13:11 +02:00
parent 07023137cd
commit adc97120c9
+1 -1
View File
@@ -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):