summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-06-05 14:39:10 +0200
committerGoffin Simon <sig@odoo.com>2018-06-06 09:43:44 +0200
commit367fadc8d51f6169e2931270730357fdaed81986 (patch)
tree7f16991de7ad7cf646d8d13e45b2fad4782d7bdb /addons/web/static/src/js/views/basic/basic_controller.js
parent1040ce923192451900bfe75a101eac3f8ca799da (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 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions