Prevent fuzzing translations when copying
review590005
This commit is contained in:
1 parent
10f28ebdec
commit
c3c344c658
1 file changed
+4
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user