Commit 5b347f3d authored by detraz's avatar detraz Committed by chirac

Fix, utilise la bonne fonction d'envoie de mails

parent 52f3d4d5
......@@ -89,7 +89,7 @@ def send_mail_invoice(invoice):
'Votre facture / Your invoice',
template.render(ctx),
GeneralOption.get_cached_value('email_from'),
[invoice.user.email],
[invoice.user.get_mail],
attachments=[('invoice.pdf', pdf, 'application/pdf')]
)
mail.send()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment