From a3fdc0b9f31c57eb0166186d7d989ddbd7d61762 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 26 Jan 2018 12:39:55 +0100 Subject: [PATCH] [IMP] save birthdate in the field defined by partner_contact_birthdate --- 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 1abdf0c..8efd379 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -307,7 +307,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, 'parent_id': partner.id, + 'lang':self.lang, 'birthdate_date':self.birthdate, 'parent_id': partner.id, 'function':self.contact_person_function,'representative':True} contact = partner_obj.create(contact_vals) else: