[IMP] web_responsive: Possibility of putting the chatter in the right (#951)

This commit is contained in:
QS5ELkMu
2018-06-22 19:57:28 +02:00
committed by Pedro M. Baeza
parent 905b9cc47d
commit e5e109ece6
15 changed files with 158 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
# Copyright 2018 Alexandre Díaz
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
from odoo.http import request
class Http(models.AbstractModel):
_inherit = 'ir.http'
def session_info(self):
res = super(Http, self).session_info()
res.update({
'chatter_position': request.env.user.chatter_position or 'normal',
})
return res