From 1da9f1dc1090a9f5408bf5bc185ee35a9d6595b8 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 20 Jul 2016 09:34:02 +0200 Subject: [PATCH] [IMP] web: logout client action: prevent toggling app switcher When the webclient calls do_action from the app_switcher, it toggles it when the returned deferred is resolved. The logout client action didn't return anything, so when logging out from the app switcher, the webclient directly toggled the app_switcher and displayed the last opened action if any, and a gray screen otherwise. This commit makes the client action return a deferred which is never resolved, so the app_switcher isn't toggled when logging out. --- addons/web/static/src/js/framework/misc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/framework/misc.js b/addons/web/static/src/js/framework/misc.js index 22bbace458c..e083ee25b22 100644 --- a/addons/web/static/src/js/framework/misc.js +++ b/addons/web/static/src/js/framework/misc.js @@ -155,6 +155,7 @@ core.action_registry.add("login", login); function logout() { redirect('/web/session/logout'); + return $.Deferred(); } core.action_registry.add("logout", logout);