[FIX] event: correctly give a template when sending badge

Oversight of odoo/odoo@d9ffbe9e89 a valid template_id was incorrectly converted
into a reference field, used in event automated communication (which is not
the case when sending badge).

Task-2488019
PR odoo/odoo#68901
This commit is contained in:
Thibault Delavallée
2021-08-23 14:59:00 +00:00
parent ba371a0d9b
commit fad1c9f047
+1 -1
View File
@@ -235,7 +235,7 @@ class EventRegistration(models.Model):
default_model='event.registration',
default_res_id=self.id,
default_use_template=bool(template),
default_template_ref='mail.template,%i' % template.id,
default_template_id=template.id,
default_composition_mode='comment',
custom_layout="mail.mail_notification_light",
)