invoice mailing log creation fix

This commit is contained in:
Serghei Mihai 2014-04-16 17:16:04 +02:00
parent cb46224d7a
commit 2bc843c68c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Command(BaseCommand):
with open(tmp_json_file, 'w') as json_output:
json.dump({'nameid': nameid.name_id, 'invoice_id': invoice.id}, json_output)
invoice.date_envoi_dernier_mail = make_aware(datetime.now(), get_current_timezone())
InvoiceNotificationEmail.objects.create(invoice.id)
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
invoice.save()
shutil.move(tmp_json_location, json_location.format(invoice_id=invoice.id))