[IMP] improved code

bzr revid: tpa@tinyerp.com-20120712132700-zc4co6o4plhzoi60
This commit is contained in:
Turkesh Patel (Open ERP) 2012-07-12 18:57:00 +05:30
parent bc76991e24
commit c17ea49de9
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ def trans_load(cr, filename, lang, verbose=True, flag=None, module_name=None, co
pool = pooler.get_pool(cr.dbname)
traslation_obj = pool.get('ir.translation')
_logger.info("loading %s", filename)
if flag == 'web' and module_name == 'web':
if flag == 'web':
transl = []
trans_ids = traslation_obj.search(cr, 1, [('module','=', module_name),('lang','=',lang)])
for trans in traslation_obj.browse(cr, 1, trans_ids, context=context):