Merge branch 'sales_features' into 'dev'

Sales features

See merge request !283
master
Andrey 8 years ago
commit 2f7dc5384e
  1. 4
      finance/views.py

@ -175,8 +175,8 @@ class InvoiceDetailView(APIView):
text_content = plaintext.render(context)
html_content = html.render(context)
msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru'])
# msg.attach_alternative(html_content, "text/html")
msg = EmailMultiAlternatives(subject, text_content, to=[to], bcc=['dmitry.dolya@skillbox.ru'])
msg.attach_alternative(html_content, "text/html")
msg.send()
invoice.save()

Loading…
Cancel
Save