From 36e4ed47b7b48ce619221f214340847ebd7be4cf Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Wed, 14 Nov 2012 16:17:14 +0100 Subject: [PATCH] [FIX] login params bzr revid: al@openerp.com-20121114151714-i0hsz4lyfmps307x --- addons/web/static/src/js/chrome.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index e0bd18ad05f..7e4b9a46fe8 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -531,6 +531,9 @@ instance.web.Login = instance.web.Widget.extend({ this.selected_db = null; this.selected_login = null; this.params = action.params || {}; + if (_.isEmpty(this.params)) { + this.params = $.bbq.getState(true); + } if (this.params.login_successful) { this.on('login_successful', this, this.params.login_successful);