diff options
| author | Goffin Simon <sig@odoo.com> | 2018-06-05 14:39:10 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-06-06 09:43:44 +0200 |
| commit | 367fadc8d51f6169e2931270730357fdaed81986 (patch) | |
| tree | 7f16991de7ad7cf646d8d13e45b2fad4782d7bdb /doc/reference/javascript_reference.rst | |
| parent | 1040ce923192451900bfe75a101eac3f8ca799da (diff) | |
[FIX] account: Currency rate conversion issue in vendor bill
Steps to reproduce:
- Enable multi currencies
- Make sure that the current rate of a foreign currency (i.e. $) is not 1.0 (i.e. 0.5)
- Create a purchasable product with a cost (i.e. 100€)
- Create a vendor bill in a foreign currency (i.e. $)
- Add the product on the invoice
Bug:
The unit price was equal to 25$ instead of 50$
Technical reason:
The function "_onchange_product_id" was called twice (the second time by function
"_onchange_uom_id") and the price unit was converted twice in the currency of the vendor bill.
The idea of this fix is to only convert in the currency when the unit price is set
by the system.
Fixes #24751
opw:1849212
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
