Browse Source

[FIX] fix case where subcription request has no company email.

pull/1/head
houssine 7 years ago
parent
commit
3aab417b84
  1. 8
      easy_my_coop/wizard/create_subscription_from_partner.py

8
easy_my_coop/wizard/create_subscription_from_partner.py

@ -125,10 +125,16 @@ class PartnerCreateSubscription(models.TransientModel):
'ordered_parts': self.share_qty,
'user_id': self.env.uid,
'email': self.email,
'source': 'crm'}
'source': 'crm',
'address': self.cooperator.street,
'zip_code': self.cooperator.zip,
'city': self.cooperator.city,
'country_id': self.cooperator.country_id.id
}
if self.is_company:
vals['company_name'] = cooperator.name
vals['company_email'] = cooperator.email
vals['name'] = '/'
vals['company_register_number'] = self.register_number
vals['is_company'] = True

Loading…
Cancel
Save