[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 Sergey Shebanin
parent e9f87d9ce4
commit e00d61569f
15 changed files with 158 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!--
Copyright 2018
@author Alexanre Díaz <dev@redneboa.es>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->
<odoo>
<record id="view_users_form_simple_modif" model="ir.ui.view">
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form_simple_modif" />
<field name="arch" type="xml">
<xpath expr="//field[@name='email']" position="after">
<field name="chatter_position" />
</xpath>
</field>
</record>
</odoo>

View File

@@ -2,6 +2,7 @@
<!--
Copyright 2016 LasLabs Inc.
Copyright 2018 Alexandre Díaz
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->
@@ -94,6 +95,10 @@
</xpath>
<xpath expr="//div[hasclass('o_main')]" position="attributes">
<attribute name="t-attf-class">o_main o_chatter_position_{{ json.loads(session_info)['chatter_position'] }}</attribute>
</xpath>
</template>
<template id="menu_secondary"
@@ -251,4 +256,4 @@
</xpath>
</template>
</odoo>
</odoo>