[FIX] reload the menu after the session (and thus the context) is reloaded
authorChristophe Simonis <chs@openerp.com>
Wed, 21 Dec 2011 13:23:32 +0000 (14:23 +0100)
committerChristophe Simonis <chs@openerp.com>
Wed, 21 Dec 2011 13:23:32 +0000 (14:23 +0100)
bzr revid: chs@openerp.com-20111221132332-foyw7abxxy5hl3rb

addons/web/static/src/js/chrome.js

index 59f708e..64a7e41 100644 (file)
@@ -1035,7 +1035,7 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
         });
     },
     do_reload: function() {
-        return $.when(this.session.session_init(),this.menu.do_reload());
+        return this.session.session_init().pipe(_.bind(function() {this.menu.do_reload();}, this));
     },
     do_notify: function() {
         var n = this.notification;