diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2018-07-12 08:27:35 +0200 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-08-14 12:37:36 +0200 |
| commit | 89931d1749e35231cc054428e1c43801d5ef3ffa (patch) | |
| tree | b1451371b2097dac1a12ee2e47319ad779898903 /addons/web/static/src/js/views/graph/graph_view.js | |
| parent | d4461cd4340274fdd284ecfeb451de7760ce40e2 (diff) | |
[IMP] web: comparisons in graph view
A previous commit [333ac27] has introduced a new widget TimeRangeMenu
that allows to create two sets of data to compare relatively
to a given date or datetime field.
This commit allows the graph view to render appropriately two
sets of data as would be expected in the different modes.
Task Id: 1835644
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_view.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_view.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_view.js b/addons/web/static/src/js/views/graph/graph_view.js index 07c486cf5b7..23ab4cecd01 100644 --- a/addons/web/static/src/js/views/graph/graph_view.js +++ b/addons/web/static/src/js/views/graph/graph_view.js @@ -36,6 +36,7 @@ var GraphView = AbstractView.extend({ Renderer: GraphRenderer, }, viewType: 'graph', + enableTimeRangeMenu: 'true', /** * @override */ @@ -86,6 +87,7 @@ var GraphView = AbstractView.extend({ this.loadParams.groupBys = groupBys || []; this.loadParams.intervalMapping = intervalMapping; this.loadParams.fields = this.fields; + this.loadParams.comparisonDomain = params.comparisonDomain; }, }); |
