[FIX] apps: reload client when updating a module

bzr revid: chs@openerp.com-20120928113143-drizsnkiev35r8y1
This commit is contained in:
Christophe Simonis
2012-09-28 13:31:43 +02:00
parent b4aa241ade
commit 86b91826a3
+4 -1
View File
@@ -664,7 +664,10 @@ class module(osv.osv):
# if any to update
cr.commit()
openerp.service.restart_server()
return False
return {
'type': 'ir.actions.client',
'tag': 'reload'
}
return self.button_immediate_install(cr, uid, ids, context=context)
finally:
shutil.rmtree(tmp)