From 0ef0e141c0d868ea1dbefa68d93c0f50ef212fef Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 3 Jan 2017 12:06:58 +0100 Subject: [PATCH] [FIX] web_graph: Adding to dashboard a customized view When reading customized views from our dashbord in reporting, the measures selected in the customized views were not taken into account. It happened when the customized view was build from a report. opw:698105 --- addons/web_graph/static/src/js/graph_view.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_graph/static/src/js/graph_view.js b/addons/web_graph/static/src/js/graph_view.js index 646a730b51b..3ee7b1a267a 100644 --- a/addons/web_graph/static/src/js/graph_view.js +++ b/addons/web_graph/static/src/js/graph_view.js @@ -83,6 +83,10 @@ instance.web_graph.GraphView = instance.web.View.extend({ groupbys = this.get_groupbys_from_searchview(), col_group_by = groupbys.col_group_by, measures = groupbys.measures; + // Do not forward-port + if(measures.length === 0 && context.measures) { + measures = context.measures; + } if (!this.graph_widget) { this.widget_config.context = _.clone(context);