From 230d99a228f73152c14cfd2e75dbfd8e351e700d Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 12 Oct 2011 13:43:31 +0200 Subject: [PATCH] [IMP] Added condition for menu reloading bzr revid: fme@openerp.com-20111012114331-7h9hask2nvy0m93d --- addons/web/static/src/js/views.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 210be479818..1fa963b5180 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -121,8 +121,11 @@ db.web.ActionManager = db.web.Widget.extend({ if (!this.dialog && on_closed) { on_closed(); } - if (this.dialog && action.context && action.context.active_model === 'base.module.upgrade') { - db.webclient.menu.reload(); + if (this.dialog && action.context) { + var model = action.context.active_model; + if (model === 'base.module.upgrade' || model === 'base.setup.installer') { + db.webclient.menu.reload(); + } } this.dialog_stop(); },