diff --git a/synchro_orleans/data/management/commands/email_new_invoices.py b/synchro_orleans/data/management/commands/email_new_invoices.py index 0e3717b..d0635a8 100644 --- a/synchro_orleans/data/management/commands/email_new_invoices.py +++ b/synchro_orleans/data/management/commands/email_new_invoices.py @@ -94,9 +94,7 @@ class Command(BaseCommand): except (KeyError, ValueError): continue attachment = os.path.join(settings.INVOICES_DIR, 'facture_%s.pdf' % invoice.id) - invoice_hash = self.get_invoice_hash(invoice.id, - invoice.date_generation, - invoice.montant) + invoice_hash = self.get_invoice_hash(invoice.id, invoice.date_generation) context = {'invoice': invoice, 'invoice_view_url_base': invoice_view_url_base, 'invoice_hash': invoice_hash}