8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Fix cheque cotisations being saved twice

This commit is contained in:
Jean-Romain Garnier 2020-02-15 12:30:37 +00:00 committed by Supelec Rezo Rennes
parent 706b309a2a
commit 8f75078152

View file

@ -47,7 +47,7 @@ def cheque(request, invoice_pk):
form = InvoiceForm(request.POST or None, instance=invoice)
if form.is_valid():
form.instance.valid = True
form.save()
# For is saved in call to end_payment
return form.instance.paiement.end_payment(
form.instance, request, use_payment_method=False
)