[stock_analysis_forecast] Add more filters

This commit is contained in:
Alex Comba
2016-09-29 12:36:14 +02:00
parent b8dc200e3b
commit e5a77f1887

View File

@@ -27,6 +27,11 @@
<search string="Stock Level forecast">
<field name="product_id"/>
<field name="date"/>
<filter name="internal_location" string="Internal location" domain="[('location_id.usage', '=', 'internal')]"/>
<separator/>
<filter name="stockable" string="Stockable products" domain="[('product_id.type', '=', 'product')]"/>
<filter name="consumable" string="Consumable products" domain="[('product_id.type', '=', 'consu')]"/>
<separator/>
<group expand="1" string="Group By">
<filter string="Pivot" name="pivot_by"
context="{'row_group_by': ['product_id'],
@@ -43,7 +48,7 @@
<field name="view_type">form</field>
<field name="view_mode">graph</field>
<field name="search_view_id" ref="view_stock_level_forecast_filter"/>
<field name="context">{'search_default_pivot_by':1}</field>
<field name="context">{'search_default_internal_location':1, 'search_default_pivot_by':1}</field>
<field name="view_id" ref="view_stock_level_forecast_pivot"/>
</record>