Browse Source

[FIX] contact should be a person and not a company

pull/1/head
houssine 6 years ago
parent
commit
663a00fb2b
  1. 2
      easy_my_coop/models/coop.py

2
easy_my_coop/models/coop.py

@ -279,7 +279,7 @@ class subscription_request(models.Model):
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, 'street':self.address,'zip':self.zip_code,
'customer':False, 'is_company':False, 'street':self.address,'zip':self.zip_code,
'city': self.city, 'phone': self.phone, 'email':self.email,
'national_register_number':self.no_registre, 'out_inv_comm_type':'bba',
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id,

Loading…
Cancel
Save