From 97bb455c066e0111a6c955fbdeb5edd95ee9a4fc Mon Sep 17 00:00:00 2001 From: svs-odoo <svs@odoo.com> Date: Mon, 30 Sep 2019 14:40:06 +0000 Subject: [PATCH] [IMP] stock: editable lot list view Makes the production lot list view multi-editable. Also, sets the `product_id` field readonly because there is an onchange on this field in the addon product_expiry. So, it's better the field is always readonly than editable then become readonly when an another addon will be installed. Task #2078163 --- addons/stock/views/stock_production_lot_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/views/stock_production_lot_views.xml b/addons/stock/views/stock_production_lot_views.xml index c1dae65752ec..71ee20515e94 100644 --- a/addons/stock/views/stock_production_lot_views.xml +++ b/addons/stock/views/stock_production_lot_views.xml @@ -50,10 +50,10 @@ <field name="name">stock.production.lot.tree</field> <field name="model">stock.production.lot</field> <field name="arch" type="xml"> - <tree string="Lots/Serial Numbers"> + <tree string="Lots/Serial Numbers" multi_edit="1"> <field name="name"/> <field name="ref" optional="show"/> - <field name="product_id"/> + <field name="product_id" readonly="1"/> <field name="create_date" optional="show"/> <field name="company_id" groups="base.group_multi_company"/> </tree> -- GitLab