summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/mail_mail.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-12-08 14:32:46 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-12-08 14:32:46 +0700
commit37c6b37c68f83a1143c8acdf9b89e05d4d8904fe (patch)
treedc55259d1b4d0d98a1efc84c945c2cbc8ab767ee /indoteknik_custom/models/mail_mail.py
parent4dcd1e3e1a3e4dced5a2d0d89d2fd4ee3e1fe7d3 (diff)
parent6f93656ef914f40b13abfb320b539d4e54acac20 (diff)
Merge branch 'production' into change/feature/promotion-program
Diffstat (limited to 'indoteknik_custom/models/mail_mail.py')
-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'