Daily updates from Odoo
Thursday, August 14, 2025
1 change · saas-18.3
Code cleanup and technical improvements
The accounting module was reorganized so tax total rounding is handled in its own reusable part. This makes it easier for localized or custom extensions to adjust rounding behavior without copying larger accounting logic, reducing maintenance 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#222759