Skip to content

Commit

Permalink
[FIX] Replace sudo(user) by with_user(user) (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored Mar 14, 2024
1 parent b539c2d commit 3c029f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_favicon/controllers/web_favicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def icon(self):
request = http.request
if "uid" in request.env.context:
user = request.env["res.users"].browse(request.env.context["uid"])
company = user.sudo(user.id).company_id
company = user.with_user(user.id).company_id
else:
company = request.env["res.company"].search([], limit=1)
favicon = company.favicon
Expand Down

0 comments on commit 3c029f4

Please sign in to comment.