From c0ca876ec0c364198d4aaa3cc901212dafe7ccf4 Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 7 May 2018 15:34:07 +0200 Subject: [PATCH] [REFACT] customer field is defined from the share type. --- 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 2eb3552..0db0755 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -249,7 +249,7 @@ class subscription_request(models.Model): def get_partner_vals(self): partner_vals = {'name':self.name, 'first_name':self.firstname, 'last_name': self.lastname, - 'customer':False, 'gender':self.gender,'cooperator':True, 'street':self.address,'zip':self.zip_code, + 'gender':self.gender,'cooperator':True, '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,