[MERGE] forward port of branch saas-3 up to fe8106f
[odoo/odoo.git] / addons / web_graph / static / src / js / graph_view.js
index 8ae9984..646a730 100644 (file)
@@ -85,6 +85,8 @@ instance.web_graph.GraphView = instance.web.View.extend({
             measures = groupbys.measures;
 
         if (!this.graph_widget) {
+            this.widget_config.context = _.clone(context);
+            this.widget_config.context.group_by_no_leaf = true;
             if (group_by.length) {
                 this.widget_config.row_groupby = group_by;
             }