diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-03-08 10:42:31 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-03-13 12:42:54 +0100 |
| commit | b522ab5772e19c41ea47484b80bca0dc054859a6 (patch) | |
| tree | 27a0ea8d86d58ffc3584ad581cbc0390c25acb77 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 0440e2538069de66f2ac4de9a1ad2dc93bc3a5d6 (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 to round the amount to the currency precision, so the
value 3.46 is recorded.
opw-1819902
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
