Skip to content
Extraits de code Groupes Projets
Valider a66a183d rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] action_send_badge_email to not return default template &...

[update] action_send_badge_email to not return default template & get_sessions_by_mail to return sessions
parent 1288bcea
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,4 +48,14 @@ class EventRegistration(models.Model): ...@@ -48,4 +48,14 @@ class EventRegistration(models.Model):
("email", "=", self.email), ("email", "=", self.email),
] ]
) )
return registration_ids return registration_ids.mapped("session_id").sorted("date_begin")
def action_send_badge_email(self):
""" Open a window to compose an email, with the template - 'event_badge'
message loaded by default
"""
self.ensure_one()
result = super(EventRegistration, self).action_send_badge_email()
if result.get("context") and result["context"].get("default_template_id"):
result["context"]["default_template_id"] = False
return result
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter