diff --git a/easy_my_coop/controllers/main.py b/easy_my_coop/controllers/main.py index ccd0ab0..a541222 100644 --- a/easy_my_coop/controllers/main.py +++ b/easy_my_coop/controllers/main.py @@ -54,10 +54,10 @@ class WebsiteSubscription(http.Controller): def get_values_from_user(self, values, is_company): # the subscriber is connected if request.env.user.login != 'public': + values['logged'] = 'on' if is_company: print '' else: - values['logged'] = 'on' partner = request.env.user.partner_id values['firstname'] = partner.firstname values['lastname'] = partner.lastname diff --git a/easy_my_coop/view/subscription_template.xml b/easy_my_coop/view/subscription_template.xml index d345c44..69e895b 100644 --- a/easy_my_coop/view/subscription_template.xml +++ b/easy_my_coop/view/subscription_template.xml @@ -58,6 +58,13 @@