diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-04 15:42:25 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-04 16:34:17 +0100 |
| commit | af174897abcb516f134930997fc30fcbf3d2ea41 (patch) | |
| tree | 9e08add177d48e0c035ceefa487713ea91578331 /doc | |
| parent | 161e85a1dc4f5c617c3da57d24b3857bc0ea54ea (diff) | |
[FIX] website_sale, website_sale_options: currencies
Adaptations following rev. 1684ae4:
The website pricelist is now dynamic, according
to the pricelist chosen by the customer on the website.
It's no longer a static pricelist, it's no longer
the public user pricelist.
Therefore, when computing the variants prices,
the prices should no longer be converted
from the public user pricelist to the current (context)
pricelist, but from the product currency to the
current pricelist chosen by the customer on the website
In addition, when getting the unit price,
`/shop/get_unit_price`,
the website current pricelist should always be used,
it should never fall back on the partner pricelist,
as, it's the user who choose his pricelist from the website
now (if he has specific set on his partner
form, it's that one which is loaded by default, and which
is returned by the website.pricelist_id)
In addition, the displayed currency on the ecommerce
must always be the current website pricelist currency
Adaptations following rev. 3622c0d:
A product can have no company set (not required).
Therefore, when attempting to set the `from_currency`
to the product company currency, this could return
`None`, if no company was set on the product.
`product.currency_id` ensures to always return a currency
for the product. It's the company currency
if the product has a company set, otherwise it take it from
the main company (`base.main_company`).
In addition, when editing the product price from the website,
the price must be displayed within the product currency,
as, if changed by the user, it changes the product sales
price directly on the product form, without any currency
conversion applied or whatever.
opw-670898
opw-671100
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
