diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-10-11 02:02:17 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-10-11 02:02:17 +0200 |
| commit | b1b8447a6b7afe9a78a42a0cdcee58384690fd09 (patch) | |
| tree | 5b4a6b4e635f77eddbf0189b24154b4a2a3bb770 /addons/web/static/src | |
| parent | a7891a99bb7fada087a96a91125dcaf0d3f66965 (diff) | |
[FIX] login always set params for potential redirection
bzr revid: al@openerp.com-20121011000217-ck3xsquoain1z8ja
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 80693d26e46..ffec074a975 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -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() { |
