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

  1. # Copyright 2018 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. res = super(Http, self).session_info()
  9. res.update({
  10. 'chatter_position': request.env.user.chatter_position or 'normal',
  11. })
  12. return res