Attach ticekts to "order approved" email if possible

This commit is contained in:
Raphael Michel
2021-05-17 13:11:27 +02:00
parent 4bcb810140
commit 7111548a9a

View File

@@ -315,6 +315,7 @@ def approve_order(order, user=None, send_mail: bool=True, auth=None, force=False
order.send_mail(
email_subject, email_template, email_context,
'pretix.event.order.email.order_approved', user,
attach_tickets=True,
invoices=[invoice] if invoice and order.event.settings.invoice_email_attachment else []
)
except SendMailException: