From d56984a3862eeceb40fbabf66afe49ca6c1f90ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 May 2025 00:10:13 +0200 Subject: [PATCH] Search notification email model by name Since a4f34799 the field containing the name of the model is 'name'. Closes #14006 --- modules/notification_email/ir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notification_email/ir.py b/modules/notification_email/ir.py index c294abd6f5..cd1f132f20 100644 --- a/modules/notification_email/ir.py +++ b/modules/notification_email/ir.py @@ -42,7 +42,7 @@ class Trigger(metaclass=PoolMeta): if self.notification_email: try: trigger_model, = Model.search([ - ('model', '=', self.notification_email.model), + ('name', '=', self.notification_email.model), ]) except ValueError: pass