@@ -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
|
||||
|
||||
Reference in New Issue
Block a user