[FIX] menu loading after immediate install of modules

bzr revid: chs@openerp.com-20111213151349-caesb8e51ngm2kko
This commit is contained in:
Christophe Simonis
2011-12-13 16:13:49 +01:00
parent d0d10c1f87
commit 94ed0a3952
+2 -2
View File
@@ -1099,10 +1099,10 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
this.action_manager.do_action(action);
},
do_action: function(action) {
var self = this;
if(action.type === "ir.ui.menu") {
console.log(action);
this.do_reload().then(function () {
this.rpc('/web/menu/action', {'menu_id': action.menu_id}, this.menu.on_menu_action_loaded);
self.menu.on_menu_click(null, action.menu_id);
});
}
},