From ddd1ea5d5d8b1ce383bf2340a23bd47f25cf8f4b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 13 Dec 2011 17:34:46 +0100 Subject: [PATCH] [IMP] allow modification of options of action of EmbedClient bzr revid: chs@openerp.com-20111213163446-h6sy1yti92mcgg1f --- addons/web/static/src/js/embed.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/embed.js b/addons/web/static/src/js/embed.js index ce6ad8b60f9..1c261060da8 100644 --- a/addons/web/static/src/js/embed.js +++ b/addons/web/static/src/js/embed.js @@ -20,9 +20,10 @@ openerp.web.embed = function(session) { session.web.EmbedClient = session.web.Widget.extend({ template: 'EmptyComponent', - init: function(action_id) { + init: function(action_id, options) { this._super(); this.action_id = action_id; + this.options = options || {}; this.am = new session.web.ActionManager(); }, @@ -39,7 +40,7 @@ openerp.web.embed = function(session) { action_buttons : false, sidebar : false //pager : false - }, action.flags || {}); + }, self.options, action.flags || {}); self.am.do_action(action); });