Get name for wizards not linked to a model

Closes #14033
This commit is contained in:
Nicolas Évrard
2025-09-14 15:27:16 +02:00
parent cb48d24489
commit d14e82281d
+6 -2
View File
@@ -1104,8 +1104,12 @@ class ActionWizard(
actions = cls.search([
(cls._action_name, '=', name),
('model', '=', model),
], limit=1)
['OR',
('model', '=', model),
('model', '=', None),
],
],
order=[('model', 'ASC NULLS LAST')])
if actions:
action, = actions
wiz_name = action.name