[IMP] handle session actions

bzr revid: chs@openerp.com-20120113113608-am1cbzs6z0urfh4k
This commit is contained in:
Christophe Simonis 2012-01-13 12:36:08 +01:00
parent 8c06e573a9
commit b84f9fe2d7
1 changed files with 10 additions and 0 deletions

View File

@ -80,6 +80,16 @@ session.web.ActionManager = session.web.Widget.extend({
};
action_loaded = this.do_action(action);
}
else if (state.sa) {
// load session action
var self = this;
this.null_action();
action_loaded = this.rpc('/web/session/get_session_action', {key: state.sa}).pipe(function(action) {
if (action) {
return self.do_action(action);
}
});
}
else if (state.client_action) {
this.null_action();
this.ir_actions_client(state.client_action);