diff --git a/project_timesheet_time_control/models/hr_timesheet_time_control_mixin.py b/project_timesheet_time_control/models/hr_timesheet_time_control_mixin.py index 799a90222c..ca8fb826d8 100644 --- a/project_timesheet_time_control/models/hr_timesheet_time_control_mixin.py +++ b/project_timesheet_time_control/models/hr_timesheet_time_control_mixin.py @@ -64,7 +64,7 @@ def button_end_work(self): self._timesheet_running_domain(), ) if not running_lines: - model = self.env["ir.model"].search([("model", "=", self._name)]) + model = self.env["ir.model"].sudo().search([("model", "=", self._name)]) message = _( "No running timer found in %(model)s %(record)s. " "Refresh the page and check again."