[FIX] signal registry change when install modules from config wizards

bzr revid: chs@openerp.com-20130123174724-bqonj3d4dufof2vw
This commit is contained in:
Christophe Simonis 2013-01-23 18:47:24 +01:00
parent b3300f6074
commit b3b800bd17
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@
import logging
from operator import attrgetter
import openerp
from openerp import pooler
from openerp.osv import osv, fields
from openerp.tools import ustr
@ -358,7 +359,8 @@ class res_config_installer(osv.osv_memory):
cr, uid,
modules.search(cr, uid, [('name','in',to_install)]),
'to install', ['uninstalled'], context=context)
cr.commit() #TOFIX: after remove this statement, installation wizard is fail
cr.commit()
openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
new_db, self.pool = pooler.restart_pool(cr.dbname, update_module=True)
res_config_installer()