From 101789f69bc5cb5661cf42193068bc96c1c8f822 Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 5 Feb 2018 15:33:38 +0100 Subject: [PATCH] [FIX] get field from self --- 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 896de79..f9540a6 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -244,7 +244,7 @@ class subscription_request(models.Model): '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, - 'lang':self.lang, 'birthdate':self.birthdate, 'customer': share_product_id.customer} + 'lang':self.lang, 'birthdate':self.birthdate, 'customer': self.customer} return partner_vals def create_coop_partner(self):