From 663a00fb2bbdfe743a596559c8621ba194d84fa5 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 16 Jan 2018 10:52:36 +0100 Subject: [PATCH] [FIX] contact should be a person and not a company --- easy_my_coop/models/coop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 6eafb9d..4540fc4 100644 --- a/easy_my_coop/models/coop.py +++ b/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,