diff --git a/addons/mail/models/res_partner.py b/addons/mail/models/res_partner.py index 1a79438d033..39ebe2f17bd 100644 --- a/addons/mail/models/res_partner.py +++ b/addons/mail/models/res_partner.py @@ -125,7 +125,7 @@ class Partner(models.Model): return partners_format def _message_fetch_failed(self): - """Returns all messages, sent by the current partner, that have errors, in + """Returns first 100 messages, sent by the current partner, that have errors, in the format expected by the web client.""" self.ensure_one() notifications = self.env['mail.notification'].search([ @@ -134,7 +134,7 @@ class Partner(models.Model): ('mail_message_id.message_type', '!=', 'user_notification'), ('mail_message_id.model', '!=', False), ('mail_message_id.res_id', '!=', 0), - ]) + ], limit=100) return notifications.mail_message_id._message_notification_format() def _get_channels_as_member(self):