Merge branch 'sales_features' into 'dev'

finance email

See merge request !281
remotes/origin/yandex_rebiling
Andrey 8 years ago
commit a49689ce81
  1. 4
      finance/views.py

@ -170,12 +170,12 @@ class InvoiceDetailView(APIView):
'price': invoice.price,
}
subject, from_email, to = 'Выставлен новый счёт', 'robo@skillbox.ru', 'invoice.bill.opener.email'
subject, to = 'Выставлен новый счёт', invoice.bill.opener.email
text_content = plaintext.render(context)
html_content = html.render(context)
msg = EmailMultiAlternatives(subject, text_content, from_email, [to], bcc=['dmitry.dolya@skillbox.ru'])
msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru'])
msg.attach_alternative(html_content, "text/html")
msg.send()

Loading…
Cancel
Save