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
408 B

  1. # Copyright 2019 Alexandre Díaz
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  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. vals = super().session_info()
  9. vals.update({
  10. 'view_transition_mode': request.env.user.view_transition_mode,
  11. })
  12. return vals