Skip to content
Snippets Groups Projects
Commit e213dab8 authored by Guillaume (guva)'s avatar Guillaume (guva) Committed by wan
Browse files

[FIX] account: tax line in invoice report


Steps to reproduce:

- Install Argentinian Accounting
- Enable multi-currency
- Create a customer invoice in USD
- Product X, quantity 10, price 17.82, VAT 21%
- Save and click on preview

Issue:

On tax line, "VAT 21% on $178.20" is displaid instead of just "VAT 21%"

Cause

This is the result of a rounding issue inherent to python, when passing in Currency.round method, 178.20 became 178.20xxx001.

Solution

Overwritte the _get_rendering_context method in order to be able to use the float_compare method instead of a strict comparison in xml report.

opw-2677160

closes odoo/odoo#80461

X-original-commit: 303d3be4
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 6f2e7dc3
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment