From 94ed0a39520fe2abfa52c8ba952cfb4c4d496175 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 13 Dec 2011 16:13:49 +0100 Subject: [PATCH] [FIX] menu loading after immediate install of modules bzr revid: chs@openerp.com-20111213151349-caesb8e51ngm2kko --- addons/web/static/src/js/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index b3278a14983..a70aa50c6e2 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -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); }); } },