diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2020-05-25 18:11:02 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2020-06-04 19:32:42 +0000 |
| commit | be5a51a345b8986da0e19627260f64f984e11ae9 (patch) | |
| tree | 4a0b1e5b0bfdad3124718ccf8e67164b5bbe07dd /addons/web/static/src/js/control_panel/control_panel.js | |
| parent | 884ef9f7ee345ab1e940dbf88f4432b7e10f36e3 (diff) | |
[IMP] web: Comparison menu
This commit replaces the "time range menu" in the control panel by a new
component: the "comparison menu".
Its 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.
Task ID: 2245719
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/control_panel/control_panel.js')
| -rw-r--r-- | addons/web/static/src/js/control_panel/control_panel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/control_panel/control_panel.js b/addons/web/static/src/js/control_panel/control_panel.js index 5d42cfc2fbe..554912175bb 100644 --- a/addons/web/static/src/js/control_panel/control_panel.js +++ b/addons/web/static/src/js/control_panel/control_panel.js @@ -3,13 +3,13 @@ odoo.define('web.ControlPanel', function (require) { const ActionMenus = require('web.ActionMenus'); const ControlPanelModel = require('web.ControlPanelModel'); + const ComparisonMenu = require('web.ComparisonMenu'); const FavoriteMenu = require('web.FavoriteMenu'); const FilterMenu = require('web.FilterMenu'); const GroupByMenu = require('web.GroupByMenu'); const patchMixin = require('web.patchMixin'); const Pager = require('web.Pager'); const SearchBar = require('web.SearchBar'); - const TimeRangeMenu = require('web.TimeRangeMenu'); const { useModel } = require('web.model'); const { Component, hooks } = owl; @@ -191,7 +191,7 @@ odoo.define('web.ControlPanel', function (require) { ControlPanel.components = { SearchBar, ActionMenus, Pager, - FilterMenu, GroupByMenu, TimeRangeMenu, FavoriteMenu, + ComparisonMenu, FilterMenu, GroupByMenu, FavoriteMenu, }; ControlPanel.defaultProps = { breadcrumbs: [], |
