From f7dd7d8992a53deef0262ace66de7c3265eb859a Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 10 Sep 2015 10:37:18 +0200 Subject: [PATCH] [IMP] stock: product form Forecast statbutton with incoming/outgoing qty and product template and product product should be the same and consistent The button Inventory Adjustement is also changed to Update Qty On Hand as an inventory adjustment would expect a total inventory. These buttons do not need a variant security group. The incoming and outgoing quantity give more information on the forecast button immediately. The stock move view (Traceability statbutton) should not allow for creating or editing immediately. --- addons/stock/product_view.xml | 48 ++++++++++++------- addons/stock/report/report_stock_forecast.xml | 11 ++++- addons/stock/stock_view.xml | 26 +++++----- 3 files changed, 51 insertions(+), 34 deletions(-) diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml index ebe51bf8c52..38fc17bfa7c 100644 --- a/addons/stock/product_view.xml +++ b/addons/stock/product_view.xml @@ -182,8 +182,8 @@
-
@@ -196,24 +196,32 @@
-
- +
@@ -253,7 +261,7 @@
-
@@ -263,12 +271,16 @@ class="oe_stat_button" icon="fa-building-o"> -
diff --git a/addons/stock/report/report_stock_forecast.xml b/addons/stock/report/report_stock_forecast.xml index cd5145ab772..800aab9240e 100644 --- a/addons/stock/report/report_stock_forecast.xml +++ b/addons/stock/report/report_stock_forecast.xml @@ -39,7 +39,7 @@
- + Stock Level Forecast report.stock.forecast form @@ -49,4 +49,13 @@ + + Stock Level Forecast + report.stock.forecast + form + pivot,graph + + {'search_default_pivot_by':1, 'search_default_graph_by':1, 'search_default_product_id': active_id} + + diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index c8b78885236..384d4dea5cf 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -523,13 +523,6 @@ - - - {'search_default_done': 1,'search_default_product_id': active_id, 'default_product_id': active_id} - Moves - stock.move - - stock.warehouse stock.warehouse @@ -1246,11 +1239,11 @@ stock.move - - + + - + @@ -1272,7 +1265,7 @@ stock.move.tree stock.move - + @@ -1435,6 +1428,13 @@ + + {'search_default_product_id': active_id, 'default_product_id': active_id} + Moves + stock.move + + + Stock Moves stock.move @@ -1510,9 +1510,6 @@ states="draft,waiting,confirmed,assigned" groups="stock.group_stock_user"/> -