Skip to content
Snippets Groups Projects
Commit 3470a3c9 authored by Laurent Smet's avatar Laurent Smet
Browse files

[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: e2247a86
Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent 77b7a23c
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment