Browse Source

[IMP] replace hardcoded currency symbol by the company currency.

pull/1/head
houssine 7 years ago
parent
commit
54cf8d241b
  1. 1
      easy_my_coop/controllers/main.py
  2. 8
      easy_my_coop/view/subscription_template.xml

1
easy_my_coop/controllers/main.py

@ -112,6 +112,7 @@ class WebsiteSubscription(http.Controller):
fields_desc = request.env['subscription.request'].sudo().fields_get(['company_type','gender']) fields_desc = request.env['subscription.request'].sudo().fields_get(['company_type','gender'])
values['company_types'] = fields_desc['company_type']['selection'] values['company_types'] = fields_desc['company_type']['selection']
values['genders'] = fields_desc['gender']['selection'] values['genders'] = fields_desc['gender']['selection']
values['company'] = company
if not values.get('share_product_id'): if not values.get('share_product_id'):
products = request.env['product.template'].sudo().get_web_share_products(is_company) products = request.env['product.template'].sudo().get_web_share_products(is_company)

8
easy_my_coop/view/subscription_template.xml

@ -213,10 +213,10 @@
</span> </span>
</div> </div>
</td> </td>
<td width="5%">x </td>
<td id="share_price" width="7%">25</td>
<td width="3%"></td>
<td width="5%">= </td>
<td width="5%"> x </td>
<td id="share_price" width="5%">25</td>
<td width="7%" style="text-align:left;margin-right:20px"><span t-esc="company.currency_id.symbol"/></td>
<td width="4%">= </td>
<td width="20%"> <td width="20%">
<div style="margin-top:12px" t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}"> <div style="margin-top:12px" t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
<div> <div>

Loading…
Cancel
Save