From 46f2f04b85bf99fe6bf80e95273e268b7bc3be7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 18 Jul 2019 14:21:35 +0000 Subject: [PATCH] [FIX] sms: use right has_sms_error field on message closes odoo/odoo#34992 Signed-off-by: Thibault Delavallee (tde) --- addons/sms/models/mail_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sms/models/mail_message.py b/addons/sms/models/mail_message.py index 9e79500e9c0..ce76aa5349b 100644 --- a/addons/sms/models/mail_message.py +++ b/addons/sms/models/mail_message.py @@ -25,7 +25,7 @@ class MailMessage(models.Model): ('mail_message_id', 'in', self.ids), ('notification_status', '=', 'exception')]).mapped('mail_message_id') for message in self: - message.has_error = message in sms_error_from_notification + message.has_sms_error = message in sms_error_from_notification def _search_has_sms_error(self, operator, operand): if operator == '=' and operand: