[FIX] stock: hide lot_id on quant list
Before this commit, the field `lot_id` was hidden when useless for the editable quant list, but was always present in the readonly quant list. Now, the `lot_id` is hidden when appropriate in the two lists. closes odoo/odoo#35008 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -118,7 +118,8 @@
|
||||
create="0" delete="0" decoration-danger="quantity < 0">
|
||||
<field name="product_id" invisible="context.get('single_product', False)"/>
|
||||
<field name="location_id" invisible="context.get('hide_location', False)"/>
|
||||
<field name="lot_id" groups="stock.group_production_lot"/>
|
||||
<field name="lot_id" groups="stock.group_production_lot"
|
||||
invisible="context.get('hide_lot', False)"/>
|
||||
<field name="package_id" groups="stock.group_tracking_lot"/>
|
||||
<field name="owner_id" groups="stock.group_tracking_owner"/>
|
||||
<field name="reserved_quantity" string="Reserved"/>
|
||||
|
||||
Reference in New Issue
Block a user