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.

18 lines
486 B

  1. # Copyright 2019 brain-tec AG - Olivier Jossen
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo import models
  4. from odoo.http import request
  5. class Http(models.AbstractModel):
  6. _inherit = 'ir.http'
  7. def session_info(self):
  8. res = super(Http, self).session_info()
  9. user = request.env.user
  10. export_models = user.fetch_export_models()
  11. res.update({
  12. 'export_models': export_models,
  13. })
  14. return res