[FIX] hr_timesheet: missing compute_sudo
opw-1862271
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user