[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:
svs-odoo
2019-07-26 12:22:34 +00:00
parent b39173a8ff
commit 2edf100c8f
+2 -1
View File
@@ -118,7 +118,8 @@
create="0" delete="0" decoration-danger="quantity &lt; 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"/>