From 51561d3ac8f1390ccabbc5f25756f669055199aa Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 14 Nov 2016 12:52:22 +0100 Subject: [PATCH] [FIX] base: restart server when installing module from apps When a new module is installed, its controllers and static files should be available. A restart is required to do so. --- openerp/addons/base/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index 239fee4ca07..1105ccd0fa1 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -725,7 +725,7 @@ class module(osv.osv): to_install_ids = self.search(cr, uid, [('name', 'in', urls.keys()), ('state', '=', 'uninstalled')], context=context) post_install_action = self.button_immediate_install(cr, uid, to_install_ids, context=context) - if already_installed: + if already_installed or to_install_ids: # in this case, force server restart to reload python code... cr.commit() openerp.service.server.restart()