diff --git a/kfet/views.py b/kfet/views.py index e403505a..0d9f9544 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -1098,17 +1098,17 @@ def kpsul_perform_operations(request): if operation.type == Operation.EDIT: required_perms.add("kfet.edit_balance_account") need_comment = True - if account.is_cof: + if on_acc.is_cof: to_addcost_for_balance = to_addcost_for_balance / cof_grant_divisor - (perms, stop) = account.perms_to_perform_operation(amount=operationgroup.amount) + (perms, stop) = on_acc.perms_to_perform_operation(amount=operationgroup.amount) required_perms |= perms if stop: data["errors"].append( { "code": "negative", - "message": f"Le compte {account.trigramme} a un solde insuffisant.", + "message": f"Le compte {on_acc.trigramme} a un solde insuffisant.", } )