chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,18 @@
from collections import defaultdict
from odoo import models
class EventMailRegistration(models.Model):
_inherit = 'event.mail.registration'
def _execute_on_registrations(self):
todo = self.filtered(
lambda r: r.scheduler_id.notification_type == "whatsapp"
)
# Create whatsapp composer and send message by cron
for scheduler, reg_mails in todo.grouped('scheduler_id').items():
scheduler._send_whatsapp(reg_mails.registration_id)
todo.mail_sent = True
return super(EventMailRegistration, self - todo)._execute_on_registrations()