From 5e3b86b90c7bb9805cf6f704d2d53d3eac5a528f Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 27 Oct 2017 15:14:08 +0200 Subject: [PATCH] [FIX] stock,product_expiry: simple view of lots When a lot is quick created, we don't want to be able to select a product different than the one passed as default. So we have defined where the product_id is readonly, and we still use the old view when a lot is created from the menuitem lot. --- .../views/production_lot_views.xml | 28 +++++++++++++++-- .../views/stock_production_lot_views.xml | 30 +++++++++++++++++-- 2 files changed, 54 insertions(+), 4 deletions(-) diff --git a/addons/product_expiry/views/production_lot_views.xml b/addons/product_expiry/views/production_lot_views.xml index 9922b02fe8a..afe1824ef91 100644 --- a/addons/product_expiry/views/production_lot_views.xml +++ b/addons/product_expiry/views/production_lot_views.xml @@ -12,7 +12,7 @@ - + @@ -20,7 +20,31 @@ Expiration Alert - + + + + + + stock.production.lot.inherit.form + stock.production.lot + + + + + + + + + + + + + + + + + Expiration Alert + diff --git a/addons/stock/views/stock_production_lot_views.xml b/addons/stock/views/stock_production_lot_views.xml index 98347b3beef..19ee7968de8 100644 --- a/addons/stock/views/stock_production_lot_views.xml +++ b/addons/stock/views/stock_production_lot_views.xml @@ -9,6 +9,7 @@ stock.production.lot.form stock.production.lot + 10
@@ -41,6 +42,29 @@
+ + + stock.production.lot.form.simple + stock.production.lot + 1 + +
+ +
+
+ + + + +
+
+
+
+ stock.production.lot.tree stock.production.lot @@ -71,8 +95,10 @@ Lots/Serial Numbers ir.actions.act_window stock.production.lot - form - + {'search_default_group_by_product': 1}