Fix wrong xml id for recursion_error message

issue11727
review439581003
This commit is contained in:
Adrià Tarroja Caubet committed 2022-10-21 13:25:30 +02:00
1 parent f9368b41bc
commit feba0bbe20
1 file changed
+2 -2
+2 -2
View File
@@ -125,7 +125,7 @@ def tree(parent='parent', name='name', separator=None):
parent_name = ', '.join(getattr(r, name)
for r in getattr(record, parent))
raise RecursionError(
gettext('ir.recursion_error',
gettext('ir.msg_recursion_error',
rec_name=getattr(record, name),
parent_rec_name=parent_name))
walker = list(chain(*(
@@ -138,7 +138,7 @@ def tree(parent='parent', name='name', separator=None):
parent_name = getattr(
getattr(record, parent), name)
raise RecursionError(
gettext('ir.recursion_error',
gettext('ir.msg_recursion_error',
rec_name=getattr(record, name),
parent_rec_name=parent_name))
walker = (getattr(walker, parent) not in visited