send canonical mails depending on sales channel

This commit is contained in:
Felix Rindt
2020-07-22 18:20:05 +02:00
parent 1fb861a117
commit 5f502776b1
5 changed files with 40 additions and 6 deletions

View File

@@ -1491,7 +1491,7 @@ class OrderPayment(models.Model):
trigger_pdf=not send_mail or not self.order.event.settings.invoice_email_attachment
)
if send_mail:
if send_mail and self.order.sales_channel in self.order.event.settings.mail_sales_channel_paid_placed:
self._send_paid_mail(invoice, user, mail_text)
if self.order.event.settings.mail_send_order_paid_attendee:
for p in self.order.positions.all():