diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-01-09 11:46:48 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-01-09 16:19:45 +0000 |
| commit | e8a01ddc8870702e62cc23b7efce53ae42fe04dc (patch) | |
| tree | 5e2e9ba0588ef29eba17fb0ff993eabf43725bfe /addons/web/static/src/js/views/basic | |
| parent | d73c4e583afbb3fbe2c236c718c04ded7a5e127d (diff) | |
[FIX] product,sale,website_sale: fix currency conversion of product
In commit f8dad1bb4b712d8f34035420ef1f6e484c638f5b, we tried to fix the currency
conversion of products by always using the currency of the product as the base.
This is still correct.
However, the conversion method also needs to know the company (to find the
correct currency rate), and it was assumed the company was also always set on
the product. This is of course not correct when using multi-company.
In this commit we fix that issue by falling back if no company is set on the
product. The order of the fallback is: product website company, given website
company, given pricelist company, current user company.
closes #29905
closes #29946
closes #30046
Co-authored-by: Sébastien Theys <seb@odoo.com>
Co-authored-by: Wolfgang Taferner <wolfgang.taferner@wt-io-it.at>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
