[FIX] translation: force clearing of cached translated term after a successfull `trans_load_data`

When re-loading a translation (with 'Overwrite Existing Terms') we need to
  empty the translation cache to ensure overwritten terms get their new values.

bzr revid: xal@openerp.com-20131217145738-9oy2fjhbc46yzonq
This commit is contained in:
Xavier ALT 2013-12-17 15:57:38 +01:00
commit 4986d636b4
1 changed files with 1 additions and 0 deletions

View File

@ -1003,6 +1003,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: