[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:16:00 +01:00
parent 54140331f3
commit b573077be6
1 changed files with 2 additions and 0 deletions

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)