[FIX] base: res.config.installer replace the self.pool when restarting it

bzr revid: chs@openerp.com-20110120160347-05prosbwh4iwnbrw
This commit is contained in:
Christophe Simonis
2011-01-20 17:03:47 +01:00
parent 5b08fe4d6d
commit c1a6deb968
+1 -1
View File
@@ -394,7 +394,7 @@ class res_config_installer(osv.osv_memory):
modules.search(cr, uid, [('name','in',to_install)]),
'to install', ['uninstalled'], context=context)
cr.commit() #TOFIX: after remove this statement, installation wizard is fail
pooler.restart_pool(cr.dbname, update_module=True)
new_db, self.pool = pooler.restart_pool(cr.dbname, update_module=True)
res_config_installer()
DEPRECATION_MESSAGE = 'You are using an addon using old-style configuration '\