[FIX] account: accrual rounding error
Step to reproduce: - Create PO with an item rounded to 0.01 - Deliver 0.48/1 - Open Accrual Expense Entry Current Behaviour: - Order line is not taken into account due to rounding error - Wizard is empty Behaviour After PR: - Qty is correctly rounded and appear as expected - Order line is taken into account opw-2720161 closes odoo/odoo#82073 X-original-commit: 85c2ab58d9ce1ccefd02f8214937a649285fde4a Signed-off-by: Damhaut Florian (flda) <flda@odoo.com>
This commit is contained in:
@@ -160,7 +160,7 @@ class AccruedExpenseRevenue(models.TransientModel):
|
||||
lambda l: fields.Float.compare(
|
||||
l.qty_to_invoice,
|
||||
0,
|
||||
precision_digits=l.product_uom.rounding,
|
||||
precision_rounding=l.product_uom.rounding,
|
||||
) == 1
|
||||
)
|
||||
for order_line in lines:
|
||||
|
||||
Reference in New Issue
Block a user