Browse Source

[IMP] skip control allow to by pass iban validation

pull/28/head
houssine 5 years ago
parent
commit
64ce48a151
  1. 4
      easy_my_coop/models/coop.py

4
easy_my_coop/models/coop.py

@ -123,7 +123,9 @@ class SubscriptionRequest(models.Model):
@api.depends('iban', 'skip_control_ng', 'is_company')
def _validated_lines(self):
for sub_request in self:
validated = self.check_iban(sub_request.iban)
validated = (self.check_iban(sub_request.iban)
or sub_request.skip_control_ng
)
sub_request.validated = validated
@api.multi

Loading…
Cancel
Save