Browse Source

[IMP] don't control iban validity if no number is provided

pull/16/head
houssine 5 years ago
parent
commit
45c4232164
  1. 9
      easy_my_coop/models/coop.py

9
easy_my_coop/models/coop.py

@ -106,10 +106,11 @@ class SubscriptionRequest(models.Model):
def check_iban(self, iban):
validated = True
try:
validate_iban(iban)
except ValidationError:
validated = False
if iban:
try:
validate_iban(iban)
except ValidationError:
validated = False
return validated
@api.multi

Loading…
Cancel
Save