You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
519 B
16 lines
519 B
# 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
|