Use the local context when launching a graph_open action
Using the local context allow us to access the context of the field shown by the graph when the graph shows a One2Many field. Closes #14341
This commit is contained in:
@@ -241,7 +241,7 @@
|
||||
},
|
||||
action: function(data, element) {
|
||||
var ids = this.ids[this._action_key(data)];
|
||||
var ctx = jQuery.extend({}, this.view.screen.group._context);
|
||||
var ctx = jQuery.extend({}, this.view.screen.group.local_context);
|
||||
delete ctx.active_ids;
|
||||
delete ctx.active_id;
|
||||
Sao.Action.exec_keyword('graph_open', {
|
||||
|
||||
Reference in New Issue
Block a user