From 8c985a6e3aaceaa1167934b9ee080e96adfbf713 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Fri, 13 Jul 2018 17:40:15 +0200 Subject: [PATCH] Suppression totale des types cheque etc --- cotisations/models.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cotisations/models.py b/cotisations/models.py index be25ea68..923b0b98 100644 --- a/cotisations/models.py +++ b/cotisations/models.py @@ -649,17 +649,6 @@ class Paiement(RevMixin, AclMixin, models.Model): """ self.moyen = self.moyen.title() - def save(self, *args, **kwargs): - """ - Override of the herited save function to be sure only one payment - method of type 'cheque' exists. - """ - if Paiement.objects.filter(type_paiement=1).count() > 1: - raise ValidationError( - _("You cannot have multiple payment method of type cheque") - ) - super(Paiement, self).save(*args, **kwargs) - def end_payment(self, invoice, request, use_payment_method=True): """ The general way of ending a payment.