[FIX] support client_options.action and client_options.post_login_action

bzr revid: fme@openerp.com-20131219180628-s95y5ryomnbgvko2
This commit is contained in:
Fabien Meghazi 2013-12-19 19:06:28 +01:00
parent a47693ae73
commit 90b63ee28c
1 changed files with 8 additions and 0 deletions

View File

@ -1340,6 +1340,10 @@ instance.web.WebClient = instance.web.Client.extend({
} else {
self.show_application();
}
if (self.client_options.action) {
self.action_manager.do_action(self.client_options.action);
delete(self.client_options.action);
}
});
},
to_kitten: function() {
@ -1422,6 +1426,10 @@ instance.web.WebClient = instance.web.Client.extend({
self.bind_hashchange();
self.set_title();
self.check_timezone();
if (self.client_options.action_post_login) {
self.action_manager.do_action(self.client_options.action_post_login);
delete(self.client_options.action_post_login);
}
},
update_logo: function() {
var img = this.session.url('/web/binary/company_logo');