[IMP] fleet: add sheet on model brand and tag form views

It's better to use sheet on form views

closes odoo/odoo#27327
This commit is contained in:
Yenthe V.G
2018-11-08 15:31:36 +00:00
committed by Yannick Tivisse
parent 13e68d65a7
commit ecedd77928
2 changed files with 16 additions and 12 deletions
@@ -99,15 +99,17 @@
<field name="model">fleet.vehicle.model.brand</field>
<field name="arch" type="xml">
<form string="Model Make">
<group>
<div>
<field name="image_medium" widget="image" class="oe_avatar"/>
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
</h1>
</div>
</group>
<sheet>
<group>
<div>
<field name="image_medium" widget="image" class="oe_avatar"/>
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name"/>
</h1>
</div>
</group>
</sheet>
</form>
</field>
</record>
+5 -3
View File
@@ -437,9 +437,11 @@
<field name="model">fleet.vehicle.tag</field>
<field name="arch" type="xml">
<form string="Vehicle Tags">
<group>
<field name="name"/>
</group>
<sheet>
<group>
<field name="name"/>
</group>
</sheet>
</form>
</field>
</record>