mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
@@ -1,4 +1,5 @@
|
|||||||
# Copyright (C) 2021 Open Source Integrators
|
# Copyright (C) 2021 Open Source Integrators
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from . import controllers
|
||||||
from . import models
|
from . import models
|
||||||
|
|||||||
1
base_user_role_company/controllers/__init__.py
Normal file
1
base_user_role_company/controllers/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import main
|
||||||
16
base_user_role_company/controllers/main.py
Normal file
16
base_user_role_company/controllers/main.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (C) 2022 Open Source Integrators
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import http
|
||||||
|
|
||||||
|
from odoo.addons.web.controllers.main import Home
|
||||||
|
|
||||||
|
|
||||||
|
class HomeExtended(Home):
|
||||||
|
@http.route()
|
||||||
|
def web_load_menus(self, unique):
|
||||||
|
response = super().web_load_menus(unique)
|
||||||
|
# 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")
|
||||||
|
return response
|
||||||
Reference in New Issue
Block a user