From 2fae0625917207bf7ed5b219821fca6b9e73fd91 Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 5 Feb 2018 15:35:48 +0100 Subject: [PATCH] [IMP] add a button to invite to login if the share subscriber has already an account --- easy_my_coop/models/coop.py | 2 +- easy_my_coop/view/subscription_template.xml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index f9540a6..03b5afd 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': self.customer} + 'lang':self.lang, 'birthdate':self.birthdate, 'customer': self.share_product_id.customer} return partner_vals def create_coop_partner(self): diff --git a/easy_my_coop/view/subscription_template.xml b/easy_my_coop/view/subscription_template.xml index 32fe8df..50ab58e 100644 --- a/easy_my_coop/view/subscription_template.xml +++ b/easy_my_coop/view/subscription_template.xml @@ -57,7 +57,12 @@

- + +
+ You have already an account? +
+
+