Daily updates from Odoo
Thursday, August 14, 2025
1 change · saas-18.4
Code cleanup and technical improvements
The accounting tax calculation code was reorganized so the tax total rounding step is isolated in its own component. This makes it easier for localization or custom accounting modules to adjust rounding behavior without copying larger parts of the process, reducing maintenance effort and upgrade risk.
Original PR description
Move the code block responsible for rounding `total_per_tax` aggregates inside `_round_base_lines_tax_details` into a dedicated helper method `_round_total_per_tax`. This refactor allows custom modules to override only the rounding logic without reimplementing the entire `_round_base_lines_tax_details` method, improving maintainability. Related: https://github.com/OCA/l10n-japan/pull/70 @qrtl QT5088 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#222951 Forward-Port-Of: odoo/odoo#222759