summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-09-30 14:40:06 +0000
committersvs-odoo <svs@odoo.com>2019-10-01 13:53:27 +0000
commit97bb455c066e0111a6c955fbdeb5edd95ee9a4fc (patch)
tree864513466216beb70fd58736cc98b0235065d750
parent31c8ebaac53f5a56aaf5a8da526f98f614ba96a5 (diff)
[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
-rw-r--r--addons/stock/views/stock_production_lot_views.xml4
1 files 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 c1dae65752e..71ee20515e9 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>