[FIX] reload the menu after the session (and thus the context) is reloaded

bzr revid: chs@openerp.com-20111221132332-foyw7abxxy5hl3rb
This commit is contained in:
Christophe Simonis 2011-12-21 14:23:32 +01:00
parent 19e49a060d
commit 61b780a9a8
1 changed files with 1 additions and 1 deletions

View 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;