[IMP] crm: format form views

Improve the rendering by putting them in a sheet

closes odoo/odoo#27202
This commit is contained in:
Yenthe V.G
2018-09-28 08:48:25 +00:00
committed by Martin Trigaux
parent d48504f800
commit 032d0ed90f
2 changed files with 26 additions and 20 deletions
+12 -8
View File
@@ -8,10 +8,12 @@
<field name="model">crm.lead.tag</field>
<field name="arch" type="xml">
<form string="Lead Tags">
<group>
<field name="name"/>
<field name="color" groups="base.group_no_one"/>
</group>
<sheet>
<group>
<field name="name"/>
<field name="color" groups="base.group_no_one"/>
</group>
</sheet>
</form>
</field>
</record>
@@ -748,10 +750,12 @@
<field name="model">crm.lost.reason</field>
<field name="arch" type="xml">
<form string="Channel">
<group>
<field name="name"/>
<field name="active"/>
</group>
<sheet>
<group>
<field name="name"/>
<field name="active"/>
</group>
</sheet>
</form>
</field>
</record>
+14 -12
View File
@@ -33,20 +33,22 @@
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<form string="Stage">
<group>
<field name="team_count" invisible="1"/>
<sheet>
<group>
<field name="name"/>
<field name="team_id" options='{"no_open": True, "no_create": True}' attrs="{'invisible': [('team_count', '&lt;=', 1)]}"/>
<field name="fold"/>
<field name="team_count" invisible="1"/>
<group>
<field name="name"/>
<field name="team_id" options='{"no_open": True, "no_create": True}' attrs="{'invisible': [('team_count', '&lt;=', 1)]}"/>
<field name="fold"/>
</group>
<group>
<field name="on_change"/>
<field name="probability" attrs="{'invisible': [('on_change', '=', False)]}"/>
</group>
</group>
<group>
<field name="on_change"/>
<field name="probability" attrs="{'invisible': [('on_change', '=', False)]}"/>
</group>
</group>
<separator string="Requirements"/>
<field name="requirements" nolabel="1" placeholder="Give your team the requirements to move an opportunity to this stage."/>
<separator string="Requirements"/>
<field name="requirements" nolabel="1" placeholder="Give your team the requirements to move an opportunity to this stage."/>
</sheet>
</form>
</field>
</record>