From 54cf8d241b62e4d7badc858b9060fabd38ebcefd Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 1 Jun 2018 12:22:34 +0200 Subject: [PATCH] [IMP] replace hardcoded currency symbol by the company currency. --- easy_my_coop/controllers/main.py | 3 ++- easy_my_coop/view/subscription_template.xml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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 @@ - x - 25 - € - = + x + 25 + + =