[IMP] allow modification of options of action of EmbedClient

bzr revid: chs@openerp.com-20111213163446-h6sy1yti92mcgg1f
This commit is contained in:
Christophe Simonis 2011-12-13 17:34:46 +01:00
parent 2a492cf3ad
commit ddd1ea5d5d
1 changed files with 3 additions and 2 deletions

View File

@ -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);
});