Browse Source

[FIX] quick fix for non belgian localization(we should not take the

national number into account
pull/1/head
houssine 7 years ago
parent
commit
a805cdcb0e
  1. 4
      easy_my_coop/models/coop.py

4
easy_my_coop/models/coop.py

@ -309,7 +309,9 @@ class subscription_request(models.Model):
partner = partner[0]
if self.is_company and not partner.has_representative():
contact = partner_obj.search([('national_register_number','=',self.no_registre)])
contact = False
if self.no_registre:
contact = partner_obj.search([('national_register_number','=',self.no_registre)])
if not contact:
contact_vals = {'name':self.name, 'first_name':self.firstname, 'last_name': self.lastname,
'customer':False, 'is_company':False, 'cooperator':True,

Loading…
Cancel
Save