|
@ -93,10 +93,11 @@ class subscription_request(models.Model): |
|
|
except ValidationError: |
|
|
except ValidationError: |
|
|
validated = False |
|
|
validated = False |
|
|
|
|
|
|
|
|
if not sub_request.is_company and (sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre)): |
|
|
|
|
|
validated = True |
|
|
|
|
|
else: |
|
|
|
|
|
validated = False |
|
|
|
|
|
|
|
|
if not sub_request.is_company: |
|
|
|
|
|
if sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre): |
|
|
|
|
|
validated = True |
|
|
|
|
|
else: |
|
|
|
|
|
validated = False |
|
|
sub_request.validated = validated |
|
|
sub_request.validated = validated |
|
|
@api.multi |
|
|
@api.multi |
|
|
@api.depends('share_product_id', 'share_product_id.list_price','ordered_parts') |
|
|
@api.depends('share_product_id', 'share_product_id.list_price','ordered_parts') |
|
|