-
- Downloads
[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:William André (wan) <wan@odoo.com>
Loading
Please register or sign in to comment