From eadb52146a4e6a16193ae2eff0349f10f5b4bfc5 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Tue, 10 Jul 2018 16:46:49 +0200 Subject: [PATCH] =?UTF-8?q?Validation=20des=20factures=20=C3=A0=20la=20rec?= =?UTF-8?q?harge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cotisations/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cotisations/views.py b/cotisations/views.py index aa60aa8b..9be079f5 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -677,9 +677,9 @@ def credit_solde(request, user, **_kwargs): """ refill_form = RechargeForm(request.POST or None, user=request.user) if refill_form.is_valid(): - invoice = Facture(user=request.user) + invoice = Facture(user=user) invoice.paiement = refill_form.cleaned_data['payment'] - invoice.valid = False + invoice.valid = True invoice.save() Vente.objects.create( facture=invoice,