[FIX] modules/loading: revert a change where db.initialize was removed:

- it should be removed
- but some code will test if the ir_module_module table exists
- and will force the demo data.

bzr revid: vmt@openerp.com-20110601113353-hdmyl4is9poss8hh
This commit is contained in:
Vo Minh Thu 2011-06-01 13:33:53 +02:00
parent 778b43b2de
commit 4b3aa9c764
1 changed files with 5 additions and 0 deletions

View File

@ -90,7 +90,12 @@ class db(netsvc.ExportService):
cr = None
try:
serv.actions[id]['progress'] = 0
cr = sql_db.db_connect(db_name).cursor()
openerp.modules.db.initialize(cr) # TODO this should be removed as it is done by pooler.restart_pool.
tools.config['lang'] = lang
cr.commit()
cr.close()
pool = pooler.restart_pool(db_name, demo, serv.actions[id],
update_module=True)[1]