[IMP] product: Display m³ and kg next to volume and weight fields

This commit is contained in:
Yannick Tivisse
2015-09-01 13:18:59 +02:00
parent c1cc4b830b
commit c85b67a1d5
+15 -3
View File
@@ -119,8 +119,12 @@
<field name="categ_id" string="Internal Category"/>
</group>
<group name="group_lots_and_weight">
<field digits="(14, 3)" name="weight" string="Weight"
<label for="weight"/>
<div class="o_row">
<field digits="(14, 3)" name="weight" string="Weight"
attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}"/>
<span>kg</span>
</div>
</group>
</group>
<separator string="Vendors"/>
@@ -248,8 +252,16 @@
</group>
<group name="weight">
<group name="weight" string="Weights">
<field digits="(14, 3)" name="volume"/>
<field digits="(14, 3)" name="weight"/>
<label for="volume"/>
<div class="o_row">
<field digits="(14, 3)" name="volume"/>
<span>m³</span>
</div>
<label for="weight"/>
<div class="o_row">
<field digits="(14, 3)" name="weight"/>
<span>kg</span>
</div>
</group>
</group>
</group>