Skip to content

Commit

Permalink
Merge PR #1330 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 29, 2024
2 parents a3c9ba9 + 300a098 commit 5e958fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 5e958fa

Please sign in to comment.