Skip to content

Commit

Permalink
Merge PR #1331 into 17.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 b8d9160 + 9ba5614 commit b90c779
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 b90c779

Please sign in to comment.