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

bzr revid: chs@openerp.com-20110120162737-yceq133ev7ncdbsp
This commit is contained in:
Christophe Simonis 2011-01-20 17:27:37 +01:00
parent 91e26e7b1b
commit 247b1247ab
1 changed files with 1 additions and 1 deletions

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 '\