[IMP] product_expiry: Position product Expiration Dates better

This commit makes it so the 'expiry_and_lots' settings in the product
form appear underneath the corresponding checkbox that makes them
visible. Previously it was appearing in the column before the checkbox
and moving other form fields in a non-intuitive way.
This commit is contained in:
Tiffany Chang (tic)
2020-07-03 11:54:08 +00:00
parent a952829c16
commit 0aa0984f83
@@ -8,7 +8,7 @@
<group name="traceability" position="inside">
<field name="use_expiration_date" attrs="{'invisible': [('tracking', '=','none')]}"/>
</group>
<group name="group_lots_and_weight" position="after">
<group name="stock_property" position="after">
<group string="Dates" name="expiry_and_lots" groups="stock.group_production_lot"
attrs="{'invisible': ['|', ('tracking', '=','none'), ('use_expiration_date', '=', False)]}">
<label for="expiration_time"/>