diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-29 11:19:34 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-29 11:19:34 +0700 |
| commit | 77945b5d2a3e8e366ca767bef9b9bce137ffee47 (patch) | |
| tree | d0c2794b68a29bdd9f53c3ba039ea47afd1fa2fe | |
| parent | efa53a846a4963518398c77fca2dcac47a353c21 (diff) | |
Update retry send mail limit to 250 each run
| -rw-r--r-- | indoteknik_custom/models/mail_mail.py | 2 |
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' |
