Allow to disable ticket attachments to emails

This commit is contained in:
Raphael Michel
2021-03-01 18:21:12 +01:00
parent 8d99388c08
commit 2221b57dc9
5 changed files with 19 additions and 0 deletions

View File

@@ -291,6 +291,8 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
order = None
else:
with language(order.locale, event.settings.region):
if not event.settings.mail_attach_tickets:
attach_tickets = False
if position:
try:
position = order.positions.get(pk=position)