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()