[MERGE] forward port branch saas-6 up to b5914e9
This commit is contained in:
@@ -752,7 +752,7 @@ class module(osv.osv):
|
|||||||
to_install_ids = self.search(cr, uid, [('name', 'in', urls.keys()), ('state', '=', 'uninstalled')], context=context)
|
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)
|
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...
|
# in this case, force server restart to reload python code...
|
||||||
cr.commit()
|
cr.commit()
|
||||||
openerp.service.server.restart()
|
openerp.service.server.restart()
|
||||||
|
|||||||
Reference in New Issue
Block a user