From c446ca6d0e58affbd50b9c041fe2afb6620678a8 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 (grafted from 303d517654fcbee0369a27e752e312bd9b722d1c) --HG-- branch : 7.0 --- 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 281098d8b1..60beca59d9 100644 --- a/trytond/trytond/ir/action.py +++ b/trytond/trytond/ir/action.py @@ -1095,7 +1095,8 @@ class ActionWizard(ActionMixin, ModelSQL, ModelView): ('model', '=', None), ], ], - order=[('model', 'ASC NULLS LAST')]) + order=[('model', 'ASC NULLS LAST')], + limit=1) if actions: action, = actions return action.name