From 9d2732e558ccece551420ba65455b2b4558a2dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Fri, 21 Oct 2022 13:25:30 +0200 Subject: [PATCH] Fix wrong xml id for recursion_error message issue11727 review439581003 (grafted from fc8196fd371f76af5e748c15b6a5065d69884c04) --HG-- branch : 6.0 --- trytond/model/tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/model/tree.py b/trytond/model/tree.py index 478ab05eeb..6d596bb6bc 100644 --- a/trytond/model/tree.py +++ b/trytond/model/tree.py @@ -112,7 +112,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(*( @@ -125,7 +125,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