[FIX] models: do not copy translations of fields that are not copied

Fixes #3272.
This commit is contained in:
Raphael Collet
2014-11-06 16:42:41 +01:00
parent 54140331f3
commit b573077be6
+2
View File
@@ -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)