From 3bdd08f830e8c84fc4be4de27ec70a9a87967c30 Mon Sep 17 00:00:00 2001 From: houssine Date: Wed, 21 Mar 2018 10:38:31 +0100 Subject: [PATCH] [IMP] the company should be create with the email company instead of the one of the representative. --- 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 bbc78a6..ac4f2be 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -243,7 +243,7 @@ class subscription_request(models.Model): partner_vals = {'name':self.company_name, 'is_company': self.is_company, 'company_register_number':self.company_register_number, 'customer':False, 'cooperator':True, 'street':self.address, 'zip':self.zip_code, - 'city': self.city,'email':self.email, 'out_inv_comm_type':'bba','customer': self.share_product_id.customer, + 'city': self.city,'email':self.company_email, 'out_inv_comm_type':'bba','customer': self.share_product_id.customer, 'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, 'lang':self.lang} return partner_vals