[FIX] models: do not copy translations of fields that are not copied
Fixes #3272.
This commit is contained in:
parent
54140331f3
commit
b573077be6
|
@ -4666,6 +4666,8 @@ class BaseModel(object):
|
|||
trans_obj = self.pool.get('ir.translation')
|
||||
|
||||
for field_name, field in self._fields.iteritems():
|
||||
if not field.copy:
|
||||
continue
|
||||
# removing the lang to compare untranslated values
|
||||
context_wo_lang = dict(context, lang=None)
|
||||
old_record, new_record = self.browse(cr, uid, [old_id, new_id], context=context_wo_lang)
|
||||
|
|
Loading…
Reference in New Issue