diff --git a/sao/src/view/graph.js b/sao/src/view/graph.js index 36fd85bcb7..10fa93282d 100644 --- a/sao/src/view/graph.js +++ b/sao/src/view/graph.js @@ -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', { diff --git a/tryton/tryton/gui/window/view_form/view/graph_gtk/graph.py b/tryton/tryton/gui/window/view_form/view/graph_gtk/graph.py index 9055f260f7..5ca8a97f8a 100644 --- a/tryton/tryton/gui/window/view_form/view/graph_gtk/graph.py +++ b/tryton/tryton/gui/window/view_form/view/graph_gtk/graph.py @@ -138,7 +138,7 @@ class Graph(Gtk.DrawingArea): def action_keyword(self, ids): if not ids: return - ctx = self.group._context.copy() + ctx = self.group.local_context.copy() if 'active_ids' in ctx: del ctx['active_ids'] if 'active_id' in ctx: