[FIX] models: oversight introduced in 1658bee8d4
This commit is contained in:
parent
f5e5bbdae0
commit
50f915f3ac
|
@ -4791,9 +4791,9 @@ class BaseModel(object):
|
||||||
context = {}
|
context = {}
|
||||||
|
|
||||||
# avoid recursion through already copied records in case of circular relationship
|
# avoid recursion through already copied records in case of circular relationship
|
||||||
if '__copy_data_seen' not in context:
|
if '__copy_translations_seen' not in context:
|
||||||
context = dict(context, __copy_data_seen=defaultdict(list))
|
context = dict(context, __copy_translations_seen=defaultdict(list))
|
||||||
seen_map = context['__copy_data_seen']
|
seen_map = context['__copy_translations_seen']
|
||||||
if old_id in seen_map[self._name]:
|
if old_id in seen_map[self._name]:
|
||||||
return
|
return
|
||||||
seen_map[self._name].append(old_id)
|
seen_map[self._name].append(old_id)
|
||||||
|
|
Loading…
Reference in New Issue