invoice mailing log creation fix
This commit is contained in:
parent
cb46224d7a
commit
2bc843c68c
|
@ -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))
|
||||
|
||||
|
|
Reference in New Issue