[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:
commit
4986d636b4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue