diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-10-17 22:14:26 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-10-29 16:08:10 +0100 |
| commit | 1684ae41e71220f91489027d43e62c15f5917271 (patch) | |
| tree | 299c55d7e870b6e72d6da34d08b37c20b1b6a799 /addons/web/static/src/js/framework/data.js | |
| parent | 0366ae16a90f55f14d17f7ce01b3434257fb005e (diff) | |
[FIX] website_sale: currency in line with pricelist selected
Before this fix, inconsistencies arise in the prices displayed in a
multi-currency environment. For example, let's consider these 2
pricelists:
- Public Pricelist, in USD
- Benelux Pricelist, in EUR with 10 % discount
When the Benelux Pricelist is selected, the strikethrough price is in
USD, the price is in EUR, and the currency displayed is $. The reason
is that the pricelist used is stored in request.session, but the
templates are still using the pricelist linked to the partner.
We link website.pricelist_id to the currency stored in request.session,
which is more logical. We also use the currency related to this
pricelist in the templates, which avoids the inconsistencies mentioned.
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions
