[REF] Manages languages loading just after loading 'base' module.

bzr revid: jth@openerp.com-20101026121907-zw39q62c3s3qjp6o
This commit is contained in:
Julien Thewys 2010-10-26 14:19:07 +02:00
parent 2272c189d9
commit 6f930404ed
2 changed files with 4 additions and 4 deletions

View File

@ -808,6 +808,10 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
raise osv.osv.except_osv('Could not load base module', 'module base cannot be loaded! (hint: verify addons-path)')
has_updates = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
if tools.config['load_language']:
for lang in tools.config['load_language'].split(','):
tools.load_language(cr, lang)
if update_module:
modobj = pool.get('ir.module.module')
logger.notifyChannel('init', netsvc.LOG_INFO, 'updating modules list')

View File

@ -126,10 +126,6 @@ if tools.config['db_name']:
tools.convert_yaml_import(cr, 'base', file(tools.config["test_file"]), {}, 'test', True)
cr.rollback()
if tools.config['load_language']:
for lang in tools.config['load_language'].split(','):
tools.load_language(cr, lang)
pool.get('ir.cron')._poolJobs(db.dbname)
cr.close()