summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-01-25 13:53:28 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-01-25 17:04:33 +0100
commit842e02020b9d15ed32c9c8b1e4698674d49f61f1 (patch)
tree9e9a25f458ad2d2f55098ee3d1fa2075bc2be68e /addons/web/static/tests/fields/basic_fields_tests.js
parentb27abee396a107e40b7f61a0df1e03c3cd23119a (diff)
[FIX] purchase: change invoice date
- Main currency: USD - Create a PO in EUR - Create an invoice from the PO - The invoice is in USD and the exchange rate is applied - Change the currency to EUR The conversion is not applied anymore. The original issue was that changing the date would overwrite any amount modified in the invoice. Actually, the dependency on the date is not really necessary. Indeed, this is supposed to help enconding invoices, but it is likely that: - If the PO is issued in a currency A, the bill received is in currency A. => no conversion necessary (solved from 11.1). - If the PO is issued in a currency A and the bill received is in currency B, the exchange rate used by the vendor is different from ours. => manual corrections are necessary Therefore, we remove the dependency on the date for the amount recomputation. However, we still use it in the onchange. This way: - the amount estimated should be close to the amount requested - we avoid unexpected recomputation of amounts Introduced with d8112b0238. opw-805926
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions