Prevent fuzzing translations when copying

review590005
This commit is contained in:
Cédric Krier committed 2012-11-22 22:42:45 +01:00
1 parent 10f28ebdec
commit c3c344c658
1 file changed
+4 -1
+4 -1
View File
@@ -311,7 +311,10 @@ class ModelStorage(Model):
('code', '=', CONFIG['language']),
])
for lang in langs:
with Transaction().set_context(language=lang.code):
# Prevent fuzzing translations when copying as the terms
# should be the same.
with Transaction().set_context(language=lang.code,
fuzzy_translation=False):
datas = cls.read(ids,
fields_names=fields_translate.keys() + ['id'])
for data in datas: