From b573077be66a5f2fead9653a67a54d4bc7164c29 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 6 Nov 2014 16:16:00 +0100 Subject: [PATCH] [FIX] models: do not copy translations of fields that are not copied Fixes #3272. --- openerp/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/models.py b/openerp/models.py index 5cce6a6e0a9..0dd16a69d1c 100644 --- a/openerp/models.py +++ b/openerp/models.py @@ -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)