-
- Downloads
[FIX] website_sale: align dashboard data
Before this commit, the python domain on sale.report would not get today's data as it would do `date >= 2020-03-03`, but it means `2020-03-03 00:00:00`, actually excluding today. Then the JS domains to retrieve those data once you click on the metric (it loads an act window with his domain + additional domain though js) would have a different date domain, including today. Note that there is still some inconsistencies between python and JS such as last month filter which is in python (in template filter) today - 30 days while in JS it is moment.subtract 1 month which might be 31 days.
Showing
- addons/website_sale/controllers/backend.py 3 additions, 3 deletionsaddons/website_sale/controllers/backend.py
- addons/website_sale/views/sale_order_views.xml 2 additions, 0 deletionsaddons/website_sale/views/sale_order_views.xml
- addons/website_sale/views/sale_report_views.xml 4 additions, 0 deletionsaddons/website_sale/views/sale_report_views.xml
Loading
Please register or sign in to comment