Browse Source
[IMP][11.0][web_responsive] Suggested changes (#978)
[IMP][11.0][web_responsive] Suggested changes (#978)
* [IMP] Chatter Position * [IMP] Clean unused stuff * [IMP] FieldStatus hidden-xs * [IMP] Improvements suggested in #540 * [WIP] Suggested changes * [WIP] Improve FieldStatus-Responsive * [IMP] Statusbar Buttons & FieldStatus * [IMP] Statusbar Buttons Style * [IMP] Button 'Task' stylepull/1066/head
QS5ELkMu
6 years ago
committed by
Jairo Llopis
No known key found for this signature in database
GPG Key ID: 59564BF1E22F314F
6 changed files with 129 additions and 18 deletions
-
1web_responsive/models/__init__.py
-
16web_responsive/models/ir_http.py
-
46web_responsive/static/src/js/web_responsive.js
-
33web_responsive/static/src/less/form_view.less
-
49web_responsive/static/src/xml/form_view.xml
-
2web_responsive/views/web.xml
@ -1,16 +0,0 @@ |
|||||
# 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 |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue