summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/mail_mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/mail_mail.py b/indoteknik_custom/models/mail_mail.py
index 26f8bf5c..82b1fcca 100644
--- a/indoteknik_custom/models/mail_mail.py
+++ b/indoteknik_custom/models/mail_mail.py
@@ -7,6 +7,6 @@ class MailMail(models.Model):
def retry_send_mail(self):
mails = self.env['mail.mail'].search([
('state', 'in', ['exception', 'cancel']),
- ])
+ ], limit=250)
for mail in mails:
mail.state = 'outgoing'