diff --git a/easy_my_coop/controllers/main.py b/easy_my_coop/controllers/main.py index 04d5b97..e89ed3d 100644 --- a/easy_my_coop/controllers/main.py +++ b/easy_my_coop/controllers/main.py @@ -112,7 +112,8 @@ class WebsiteSubscription(http.Controller): fields_desc = request.env['subscription.request'].sudo().fields_get(['company_type','gender']) values['company_types'] = fields_desc['company_type']['selection'] values['genders'] = fields_desc['gender']['selection'] - + values['company'] = company + if not values.get('share_product_id'): products = request.env['product.template'].sudo().get_web_share_products(is_company) for product in products: diff --git a/easy_my_coop/view/subscription_template.xml b/easy_my_coop/view/subscription_template.xml index d3f6566..88bdd69 100644 --- a/easy_my_coop/view/subscription_template.xml +++ b/easy_my_coop/view/subscription_template.xml @@ -213,10 +213,10 @@ -