diff options
| author | Laurent Smet <las@odoo.com> | 2021-04-20 08:30:50 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2021-05-03 12:24:41 +0000 |
| commit | 3470a3c94e06d92afcd8a8129f80e4dfea14efe4 (patch) | |
| tree | 2b0cac286b373c4504e071b31ef98ab2c114a61a /addons/website/static/src/js | |
| parent | 77b7a23c3c759b33e26bf91faf14a10f02449a91 (diff) | |
[FIX] account: Fix price_unit rounding issue with fpos/price included tax
- Create an invoice with an empty fiscal position
- Create a line with a product having 100.0 as sale price and 21.0% price-included tax
=> price_unit equals 99.99
This is because 100 / 1.21 ~= 82.64 but 82.64 * 1.21 ~= 99.99 != 100.0.
The bug only appears when managing a fiscal position because the code is trying to adapt the product price_unit to the newly computed taxes.
closes odoo/odoo#69836
X-original-commit: e2247a860d3d4931d641928a6313bef4649e0edf
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/website/static/src/js')
0 files changed, 0 insertions, 0 deletions
