summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-03-09 10:18:51 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-03-09 12:20:47 +0100
commit11c6f1b322ad05352933f26b5cf8e3272623af17 (patch)
treeae211fc2b6633c947366f31786c8943bd1d40a9b /addons/web/static/tests/fields/basic_fields_tests.js
parentcc97fa292a455e0b7043df958d5b7e901d128515 (diff)
[FIX] account: tax rounding
- Set 'Round Globally' - Create an excluded tax of 10 % - Create an invoice for a product costing 34.55, and apply the tax. The tax on the invoice is 3.46, while the tax on the tax line is 3.45. When rounded in `compute_all`, the tax amount is 3.455, which is the value expected. However, the `create` method won't round this value before storing, leading to the inconsistency. We make sure the currency is sent at saving, so the method `convert_to_column` receives the appropriate values for rounding. opw-1819902
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions