[FIX] signal registry change when install modules from config wizards
bzr revid: chs@openerp.com-20130123174724-bqonj3d4dufof2vw
This commit is contained in:
parent
b3300f6074
commit
b3b800bd17
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue