summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-07-24 10:18:50 +0200
committerNicolas Martinelli <nim@odoo.com>2017-07-24 10:44:34 +0200
commite76fe2449c337087a6668a4d8bd5f9c08166a539 (patch)
tree7c2543b2267519b8f7f91371d07141215294acd7 /addons/web/static/src/js/views/basic/basic_controller.js
parent75fe7cb1af8c3a2098084e088f9e740e41a6d53f (diff)
[FIX] sale: taxes on report
- Create a tax using the tax template 'GST + QST for sales' - Create a SO with the following lines: Product 1 100 Units @ 0.1 Product 2 2000 Units @ 10.334 Product 3 2000 Units @ 10.334 Product 4 5000 Units @ 0.1 Product 5 1500 Units @ 0.1 - The totals are: Amount without taxes: 41996.00 Taxes: 6288.90 When printed, the quotation gives: Amount without taxes: 41996.00 Taxes: 6286.52 This is due to the method `_get_tax_amount_by_group`, which is using `line.price_reduce` for tax computation. Since it is a Monetary field, it is automatically rounded to the currency precision, while it should be rounded with the same precision as `price_unit`. To avoid breaking overrides, changing the field type is done in master branch. Introduced in 99743cc4aa4d5b52b77a3a38650ef2d7a54ab984 opw-752487
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions