From cae48b576ec5817f65361bd3cd92067b477f9fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Sep 2025 07:48:50 +0200 Subject: [PATCH] Restore limit when searching for searching for wizard name 20cdba7a1bf3 removed the limit but it is still needed to extract the single record. Closes #14238 --- trytond/trytond/ir/action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/trytond/ir/action.py b/trytond/trytond/ir/action.py index 5c83e71449..2f9223296d 100644 --- a/trytond/trytond/ir/action.py +++ b/trytond/trytond/ir/action.py @@ -1109,7 +1109,8 @@ class ActionWizard( ('model', '=', None), ], ], - order=[('model', 'ASC NULLS LAST')]) + order=[('model', 'ASC NULLS LAST')], + limit=1) if actions: action, = actions wiz_name = action.name