diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-06-04 21:56:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-04 21:56:57 +0200 |
| commit | f8ab827b82ba3b6b4fd703a93722a5f0e5c24977 (patch) | |
| tree | 7982e86a4f144ae28324f50c0250054ab846d2d3 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | cbdff80157cec3cbff71ea7a41227c9f0d569133 (diff) | |
| parent | 087724fa9e9a8d944e192be8264540e0904c381a (diff) | |
[MERGE] web: comparison menu
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
closes odoo/odoo#51379
Related: odoo/enterprise#10658
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: Julien Mougenot <jum@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
