[FIX] sms: use right has_sms_error field on message
closes odoo/odoo#34992 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user