[FIX] models: oversight introduced in 1658bee8d4

This commit is contained in:
Denis Ledoux 2015-09-04 13:26:52 +02:00
parent f5e5bbdae0
commit 50f915f3ac
1 changed files with 3 additions and 3 deletions

View File

@ -4791,9 +4791,9 @@ class BaseModel(object):
context = {}
# avoid recursion through already copied records in case of circular relationship
if '__copy_data_seen' not in context:
context = dict(context, __copy_data_seen=defaultdict(list))
seen_map = context['__copy_data_seen']
if '__copy_translations_seen' not in context:
context = dict(context, __copy_translations_seen=defaultdict(list))
seen_map = context['__copy_translations_seen']
if old_id in seen_map[self._name]:
return
seen_map[self._name].append(old_id)