From 3aca41635fa0effa278e48b1e09aec9188da317f Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 8 Jun 2015 10:02:02 +0200 Subject: [PATCH] [ADD] use the action's domain + filter --- .../static/src/js/web_dashboard_open_action.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web_dashboard_open_action/static/src/js/web_dashboard_open_action.js b/web_dashboard_open_action/static/src/js/web_dashboard_open_action.js index 2f4f5bce..ab4b0a8c 100644 --- a/web_dashboard_open_action/static/src/js/web_dashboard_open_action.js +++ b/web_dashboard_open_action/static/src/js/web_dashboard_open_action.js @@ -25,6 +25,12 @@ openerp.web_dashboard_open_action = function(instance) on_load_action: function(result, index, action_attrs) { var self = this, action = _.extend({flags: {}}, result); + action.context_string = action_attrs.context; + action.context = instance.web.pyeval.eval( + 'context', action_attrs.context || {}); + action.domain_string = action_attrs.domain; + action.domain = instance.web.pyeval.eval( + 'domain', action_attrs.domain || [], action_attrs.context); jQuery('#' + this.view.element_id + '_action_' + index) .parent() .find('.oe_web_dashboard_open_action')