[FIX] re-importing the translation from a file(.csv, .xml) updates the terms in ir_translation table but does not update it in cache memory, need a server restart to take those change effect in interface. (Maintenance Case: 587178)

bzr revid: rgo@tinyerp.com-20130318133338-djkx3ykbkitvbzeb
This commit is contained in:
Ravi Gohil (OpenERP) 2013-03-18 19:03:38 +05:30
parent dcc9a3aeab
commit bdde088d08
1 changed files with 1 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ def trans_load_data(cr, fileobj, fileformat, lang, lang_name=None, verbose=True,
irt_cursor.push(dic)
irt_cursor.finish()
trans_obj.clear_caches()
if verbose:
_logger.info("translation file loaded succesfully")
except IOError: