From 5fcad5500020992b0afd76043ebadf0e664f2680 Mon Sep 17 00:00:00 2001 From: Lionel Sausin Date: Wed, 8 Jul 2015 18:03:57 +0200 Subject: [PATCH] [FIX] stock_account: missing default filter for valuation menu The menu entry in Warehouse > Current Inventory Valuation is a shortcut to the same results as the wizard in Reports > Warehouse > Valuation. However when using the "current valuation" menu entry, the list is given without grouping by product and location, so it's basically just a glorified list of stock moves that no Warehouse manager is going to understand. Let's just add the same default grouping to let the results make sense. Closes #7531 --- addons/stock_account/wizard/stock_valuation_history_view.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock_account/wizard/stock_valuation_history_view.xml b/addons/stock_account/wizard/stock_valuation_history_view.xml index 4109c67d726..3fedc090fd2 100644 --- a/addons/stock_account/wizard/stock_valuation_history_view.xml +++ b/addons/stock_account/wizard/stock_valuation_history_view.xml @@ -92,6 +92,7 @@ [('date','<=',time.strftime('%Y-%m-%d %H:%M:%S'))] form tree,graph + {'search_default_group_by_product': True, 'search_default_group_by_location': True}