[IMP] product, delivery: inline fields display

View styling, no functional change

closes odoo/odoo#103087

X-original-commit: 4cb0d14f435e84db0f3c48556bd541a7497f24a6
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
This commit is contained in:
Damien Bouvy
2022-10-11 18:55:59 +02:00
parent c2c6367623
commit 6920143fd8
2 changed files with 4 additions and 10 deletions
@@ -7,14 +7,8 @@
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='group_lots_and_weight']" position="inside">
<label for="hs_code"/>
<div class="o_row" name="hs_code">
<field name="hs_code" string="HS Code"/><div/>
</div>
<label for="country_of_origin"/>
<div class="o_row" name="country_of_origin">
<field name="country_of_origin"/><div/>
</div>
<field name="hs_code" string="HS Code"/>
<field name="country_of_origin"/>
</xpath>
</field>
</record>
+2 -2
View File
@@ -120,12 +120,12 @@
<group name="group_lots_and_weight" string="Logistics" attrs="{'invisible': [('type', 'not in', ['product', 'consu'])]}">
<label for="weight" attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>
<div class="o_row" name="weight" attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">
<field name="weight"/>
<field name="weight" class="oe_inline"/>
<field name="weight_uom_name"/>
</div>
<label for="volume" attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>
<div class="o_row" name="volume" attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">
<field name="volume" string="Volume"/>
<field name="volume" string="Volume" class="oe_inline"/>
<field name="volume_uom_name"/>
</div>
</group>