[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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user