8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 03:16:25 +00:00

Fix #155 confusion entre request.user et user

This commit is contained in:
grisel-davy 2018-08-17 11:05:40 +02:00 committed by chirac
parent 175e2170eb
commit 39b9c1b3a9

View file

@ -854,7 +854,7 @@ def credit_solde(request, user, **_kwargs):
p = get_object_or_404(Paiement, is_balance=True) p = get_object_or_404(Paiement, is_balance=True)
return form({ return form({
'factureform': refill_form, 'factureform': refill_form,
'balance': request.user.solde, 'balance': user.solde,
'title': _("Refill your balance"), 'title': _("Refill your balance"),
'action_name': _("Pay"), 'action_name': _("Pay"),
'max_balance': p.payment_method.maximum_balance, 'max_balance': p.payment_method.maximum_balance,