compute hash from id and issue date only (#9688)

This commit is contained in:
Serghei Mihai 2016-01-18 12:13:33 +01:00
parent b80d118872
commit 28190a94b4
1 changed files with 1 additions and 3 deletions

View File

@ -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}