[FIX] fix context problem in graph view
The group_by query expects the context to have group_by_no_leaf = true, so we can not just blindly forward the context to the groupby query. This is a defensive way to fix the problem, to avoid other possible crashes. But the context shouldn't have group_by_no_leaf anyway, it does not make sense to explicitely do that in the action
This commit is contained in:
parent
77f86f1591
commit
0305010f2f
|
@ -86,7 +86,8 @@ instance.web_graph.GraphView = instance.web.View.extend({
|
|||
col_group_by = groupbys.col_group_by;
|
||||
|
||||
if (!this.graph_widget) {
|
||||
this.widget_config.context = context;
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue