Monday, April 20, 2026
2 changes · saas-18.3
Enhancements to existing features
This change improves how tax amounts are calculated for Argentine electronic documents, making the results more consistent and reliable. It also formats the final values with the right precision, which helps avoid rounding issues in invoices and reports.
Original PR description
- Rewrite all tax amounts calculations on `_get_tributes` and `_get_line_details` to properly use the tax computation engine helpers (`base_line`, and aggregating methods) - Ensure that all final amounts from the calculation are formatted with `float_repr` with appropriate precision. related-community-PR: https://github.com/odoo/odoo/pull/223393 task-4891206 Forward-Port-Of: odoo/enterprise#92639
This change updates how Argentina-specific tax amounts are calculated so they rely on Odoo’s standard tax computation methods instead of custom line queries. It makes the calculation logic more reliable and prepares the system for future improvements in tax handling.
Original PR description
This commit refactors the tax amount calculations on the `_get_vat` and `_l10n_ar_get_amounts` method so that it uses the tax computation engine helpers properly, to prepare for any future fixes done on how Argentina tax calculations differs from all other localizations. This replaces all move line queries with the proper `base_line` calculation, with the proper aggregating methods. related-enterprise-PR: https://github.com/odoo/enterprise/pull/92639 task-4891206 Forward-Port-Of: odoo/odoo#223393