Thursday, June 4, 2020
1 change · master
Enhancements to existing features
Odoo replaces the previous time range menu with a simpler comparison menu in reporting views. Users can now compare selected date filters with the previous period or previous year, making period-over-period analysis clearer and more consistent.
Original PR description
The present PR aims to replace the "time range menu" component in the control panel by a new component called "comparison menu". The new component purpose is roughly the same: compare a period of…
The present PR aims to replace the "time range menu" component in the control panel by a new component called "comparison menu". The new component purpose is roughly the same: compare a period of data in a reporting view with the previous period or the previous year. Its implementation is a bit simpler: it will only appear if at least one date filter is selected in the search view, and will suggest to compare each selected date option with the previous period or the previous year. Remarks: 1) The date filter options are now ordered a bit differently: the chronological order has been chosen. For example, we would get May 2019/June 2019/Q1 2019/May 2020/June 2020/Q1 2020 instead of June 2020/May 2020/Q1 2020/June 2019/May 2019/Q1 2019 (for simplicity no comparison is done between quarters and months). 2) The key 'timeRanges' in the ir.filters contexts is no more used. We now use the key 'comparison'. Task ID: 2245719 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com>