Skip to content
Snippets Groups Projects
Commit 33114b90 authored by boan-odoo's avatar boan-odoo
Browse files

[IMP] stock: resize prod. form view fields


Some fields in the inventory tab of the product
form view had their input widget needlessly stretched
to the maximum available size.

closes odoo/odoo#84056

Task: 2654703-9
Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
parent 4a48d483
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,15 @@
<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">
<field name="hs_code"/>
<field name="country_of_origin"/>
</xpath>
<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>
</xpath>
</field>
</record>
......
......@@ -120,12 +120,12 @@
<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"/>
<span><field name="weight_uom_name"/></span>
<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"/>
<span><field name="volume_uom_name"/></span>
<field name="volume_uom_name"/>
</div>
</group>
</group>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment