Browse Source

[IMP] if the cooperator candidate is connected we tie the related

partner to the cooperator subscription.
pull/1/head
houssine 7 years ago
parent
commit
efaaa4b547
  1. 4
      easy_my_coop/controllers/main.py

4
easy_my_coop/controllers/main.py

@ -169,6 +169,10 @@ class WebsiteSubscription(http.Controller):
post_description.append("%s: %s" % (field_name, field_value)) post_description.append("%s: %s" % (field_name, field_value))
logged = kwargs.get("logged")=='on' logged = kwargs.get("logged")=='on'
if logged:
partner = request.env.user.partner_id
values['partner_id'] = partner.id
values['already_cooperator'] = partner.member
is_company = False is_company = False
if kwargs.get("is_company") == 'on': if kwargs.get("is_company") == 'on':

Loading…
Cancel
Save