[REF] Manages languages loading just after loading 'base' module.
bzr revid: jth@openerp.com-20101026121907-zw39q62c3s3qjp6o
This commit is contained in:
parent
2272c189d9
commit
6f930404ed
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue