Skip to content

Commit

Permalink
[IMP] tg_event: show the email templates related to event registratio…
Browse files Browse the repository at this point in the history
…n model only
  • Loading branch information
ilmir-k committed Dec 25, 2024
1 parent 658fac8 commit 2f199f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tg_event/models/event_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class EventEvent(models.Model):
)
default_email_template_id = fields.Many2one(
"mail.template",
domain="[('model', '=', 'event.registration')]",
help="Default email template used upon manual sending the emails to attendees using "
"Send By Email button in the event registration form",
)
4 changes: 2 additions & 2 deletions tg_event/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def create(self, vals_list):
record.message_subscribe(record.event_id.subscribe_in_registrations.ids)
return records

# Set email template taken from the related Event as default upon manual email sending to attendee
# in event registration form
# Set email template taken from the related Event as default upon manual email
# sending to attendee in event registration form
def action_send_badge_email(self):
res = super(EventRegistration, self).action_send_badge_email()
default_tmpl = self.event_id.default_email_template_id
Expand Down

0 comments on commit 2f199f5

Please sign in to comment.