19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:39 +01:00
parent 5df8c07b59
commit daa394e8b0
2114 changed files with 564841 additions and 299642 deletions

View file

@ -0,0 +1,15 @@
from odoo import fields, models
class EventMailRegistration(models.Model):
_inherit = 'event.mail.registration'
def _execute_on_registrations(self):
todo = self.filtered(
lambda r: r.scheduler_id.notification_type == "sms"
)
for scheduler, reg_mails in todo.grouped('scheduler_id').items():
scheduler._send_sms(reg_mails.registration_id)
todo.mail_sent = True
return super(EventMailRegistration, self - todo)._execute_on_registrations()