pos_sale_report: Now works well when you select multiple products in product tree view

Add Today and Yesterday filter, for easy analysis of recent sales
This commit is contained in:
Alexis de Lattre
2015-10-30 23:17:37 +01:00
parent 27fc5070ec
commit da2c22329c
4 changed files with 12 additions and 26 deletions

View File

@@ -10,7 +10,8 @@
res_model="pos.sale.report"
src_model="product.product"
view_mode="graph"
context="{'search_default_product_id': active_id}"
domain="[('product_id', 'in', active_ids)]"
context="{'search_default_product_groupby': 1}"
/>
<act_window id="product_template_pos_sale_report_action"
@@ -19,7 +20,8 @@
res_model="pos.sale.report"
src_model="product.template"
view_mode="graph"
context="{'search_default_product_tmpl_id': active_id}"
domain="[('product_tmpl_id', 'in', active_ids)]"
context="{'search_default_product_tmpl_groupby': 1}"
/>