Browse Source

[IMP] apply national register number control also for the legal

representative(same field than for a person).
pull/1/head
houssine 6 years ago
parent
commit
208620f53b
  1. 12
      easy_my_coop/models/coop.py

12
easy_my_coop/models/coop.py

@ -88,7 +88,7 @@ class subscription_request(models.Model):
return True
@api.multi
@api.depends('iban', 'no_registre','skip_control_ng')
@api.depends('iban', 'no_registre','skip_control_ng','is_company',)
def _validated_lines(self):
for sub_request in self:
validated = False
@ -98,11 +98,11 @@ class subscription_request(models.Model):
except ValidationError:
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
#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
@api.multi
@api.depends('share_product_id', 'share_product_id.list_price','ordered_parts')

Loading…
Cancel
Save