summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitali Patel <mpa@odoo.com>2017-01-09 18:35:46 +0530
committerYannick Tivisse <yti@odoo.com>2017-02-09 10:31:02 +0100
commit87d186d8d38cc932da37f75ee5fd95e861b4c19d (patch)
tree9be05981612225f4df41228003b2acc3293aed43
parentad1144543f7534e0d36f1b4373b5fbf8b725d685 (diff)
[IMP] stock: Change the default search for 'Inventory Valuation'
Purpose ======= The default group-by in the inventory valuation prevent from doing an easy selection and exporting the data. Specification ============= The group-by in Inventory Valuation shouldn't be hardcoded. It should be a default filter by Internal Locations and groupby product.
-rw-r--r--addons/stock/views/stock_quant_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/stock_quant_views.xml b/addons/stock/views/stock_quant_views.xml
index f2460087b5d..a33039ce7bd 100644
--- a/addons/stock/views/stock_quant_views.xml
+++ b/addons/stock/views/stock_quant_views.xml
@@ -123,7 +123,7 @@
<field name="res_model">stock.quant</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,pivot</field>
- <field name="context">{'search_default_internal_loc': 1, 'group_by': ['product_id', 'location_id']}</field>
+ <field name="context">{'search_default_internal_loc': 1, 'search_default_productgroup': 1}</field>
<field name="help">This analysis gives you a fast overview on the current stock level of your products and their current inventory value.</field>
</record>
<record model="ir.actions.act_window" id="product_template_open_quants"> <!-- Not used -->