mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Suppression totale des types cheque etc
This commit is contained in:
parent
8061c3283c
commit
8c985a6e3a
1 changed files with 0 additions and 11 deletions
|
@ -649,17 +649,6 @@ class Paiement(RevMixin, AclMixin, models.Model):
|
||||||
"""
|
"""
|
||||||
self.moyen = self.moyen.title()
|
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):
|
def end_payment(self, invoice, request, use_payment_method=True):
|
||||||
"""
|
"""
|
||||||
The general way of ending a payment.
|
The general way of ending a payment.
|
||||||
|
|
Loading…
Reference in a new issue