summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph/graph_view.js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2018-07-12 08:27:35 +0200
committerMathieu Duckerts-Antoine <dam@odoo.com>2018-08-14 12:37:36 +0200
commit89931d1749e35231cc054428e1c43801d5ef3ffa (patch)
treeb1451371b2097dac1a12ee2e47319ad779898903 /addons/web/static/src/js/views/graph/graph_view.js
parentd4461cd4340274fdd284ecfeb451de7760ce40e2 (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.js2
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;
},
});