diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-02-25 13:17:24 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-02-25 13:58:02 +0000 |
| commit | 9274dfc44e3109b7696bfbf8261f58651d59a39d (patch) | |
| tree | 05c8865e963e4ef7e126b824ebfde2cf4e1eafd2 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 950d0f1849bebc20bfd6b2d71bedfd97d675b642 (diff) | |
[FIX] product: pricelist based on cost
- Create 2 companies C1 (USD) and C2 (EUR)
- Create 2 products P1 and P2
P1: company: C1; cost: 50
P2: company: C2; cost: 50
- Make sure to define the cost in both companies since it is a property
field (set it to 50 in all cases)
- Update the currency rates for both companies
- Create a pricelist in EUR, with a price based on the cost price.
- Create a SO in C1, select the pricelist previously created
- Add P1 and P2
The unit price for P1 is converted, while the unit price for P2 is 50.
This is not correct: both cost prices are set to 50, so the unit price
should be identical.
This is because the pricelist always assumes that the price retrieved is
in the product currency. In this case, this is not correct: the price
retrieved is in the company currency, since the cost price is in the
company currency.
Closes #30616
opw-1934443
closes odoo/odoo#31402
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
