Browse Source

[IMP] save birthdate in the field defined by partner_contact_birthdate

pull/1/head
houssine 7 years ago
parent
commit
a3fdc0b9f3
  1. 2
      easy_my_coop/models/coop.py

2
easy_my_coop/models/coop.py

@ -307,7 +307,7 @@ class subscription_request(models.Model):
'city': self.city, 'phone': self.phone, 'email':self.email, 'city': self.city, 'phone': self.phone, 'email':self.email,
'national_register_number':self.no_registre, 'out_inv_comm_type':'bba', 'national_register_number':self.no_registre, 'out_inv_comm_type':'bba',
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, '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} 'function':self.contact_person_function,'representative':True}
contact = partner_obj.create(contact_vals) contact = partner_obj.create(contact_vals)
else: else:

Loading…
Cancel
Save