|
@ -88,7 +88,7 @@ class subscription_request(models.Model): |
|
|
return True |
|
|
return True |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
@api.depends('iban', 'no_registre','skip_control_ng') |
|
|
|
|
|
|
|
|
@api.depends('iban', 'no_registre','skip_control_ng','is_company',) |
|
|
def _validated_lines(self): |
|
|
def _validated_lines(self): |
|
|
for sub_request in self: |
|
|
for sub_request in self: |
|
|
validated = False |
|
|
validated = False |
|
@ -98,7 +98,7 @@ class subscription_request(models.Model): |
|
|
except ValidationError: |
|
|
except ValidationError: |
|
|
validated = False |
|
|
validated = False |
|
|
|
|
|
|
|
|
if not sub_request.is_company: |
|
|
|
|
|
|
|
|
#if not sub_request.is_company: |
|
|
if sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre): |
|
|
if sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre): |
|
|
validated = True |
|
|
validated = True |
|
|
else: |
|
|
else: |
|
|