|
|
@ -309,6 +309,8 @@ class subscription_request(models.Model): |
|
|
|
partner = partner[0] |
|
|
|
|
|
|
|
if self.is_company and not partner.has_representative(): |
|
|
|
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, |
|
|
|