Skip to content

Commit

Permalink
[FIX] base_user_role_company: wrong arguments in new odoo releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiadavid committed Dec 15, 2024
1 parent 77db565 commit 2ba4dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_user_role_company/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

class HomeExtended(Home):
@http.route()
def web_load_menus(self, unique):
response = super().web_load_menus(unique)
def web_load_menus(self, *args, **kwargs):
response = super().web_load_menus(*args, **kwargs)

Check warning on line 12 in base_user_role_company/controllers/main.py

View check run for this annotation

Codecov / codecov/patch

base_user_role_company/controllers/main.py#L12

Added line #L12 was not covered by tests
# On logout & re-login we could see wrong menus being rendered
# To avoid this, menu http cache must be disabled
response.headers.remove("Cache-Control")
Expand Down

0 comments on commit 2ba4dd1

Please sign in to comment.