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

  1. # Copyright (C) 2022 Open Source Integrators
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import http
  4. from odoo.addons.web.controllers.main import Home
  5. class HomeExtended(Home):
  6. @http.route()
  7. def web_load_menus(self, unique):
  8. response = super().web_load_menus(unique)
  9. # On logout & re-login we could see wrong menus being rendered
  10. # To avoid this, menu http cache must be disabled
  11. response.headers.remove("Cache-Control")
  12. return response