[FIX] login always set params for potential redirection

bzr revid: al@openerp.com-20121011000217-ck3xsquoain1z8ja
This commit is contained in:
Antony Lesuisse
2012-10-11 02:02:17 +02:00
parent a7891a99bb
commit b1b8447a6b
+4 -6
View File
@@ -1016,15 +1016,13 @@ instance.web.WebClient = instance.web.Client.extend({
},
show_login: function() {
this.toggle_bars(false);
var state = $.bbq.getState(true);
var action = {
'type': 'ir.actions.client',
'tag': 'login'
'tag': 'login',
'params': state
};
var state = $.bbq.getState(true);
if (state.action === "login") {
action.params = state;
}
this.action_manager.do_action(action);
this.action_manager.inner_widget.on('login_successful', this, function() {