Monday, September 14, 2026
2 changes · saas-19.2
Enhancements to existing features
This update makes the Belgian payroll employee family section handle senior dependents needing care consistently with the newer payroll behavior. It avoids confusion from a field that appeared to include disabled senior dependents but did not, helping payroll data reflect the intended dependent counts.
Original PR description
In the 19.2 branch, we changed the UI to make it look like the number of other disabled senior dependents was included in the "other senior dependent" field, but this is not the case. Since the `other_disabled_senior` field will be deleted in the 19.5 branch, instead of just fixing the UI in 19.2, this commit updates the logic to match the 19.5 behavior. We will now handle this using only the remaining field. Task that fixes it in 19.5: https://www.odoo.com/odoo/project/1251/tasks/6133227 Task ID: 6526570
External tax calculations now avoid an unnecessary clearing step before applying computed tax values. This improves processing time for invoices with many lines, especially when using services such as AvaTax, while keeping the same tax calculation behavior.
Original PR description
[PERF] account_external_tax: avoid redundant tax clearing Avoid unnecessarily clearing `tax_ids` before setting the externally computed taxes, as the field is immediately replaced with the new tax…
[PERF] account_external_tax: avoid redundant tax clearing Avoid unnecessarily clearing `tax_ids` before setting the externally computed taxes, as the field is immediately replaced with the new tax values. Performance testing was performed using an invoice containing 200 lines with externally computed AvaTax taxes. Performance testing: | Metric | Before | After | |--------------------------------|--------|---------| | `_set_external_taxes()` | ~1:13 | ~43.77s | | Total external tax calculation | ~1:16 | ~46.66s | This reduces the execution time of `_set_external_taxes()` by approximately 40% for a 200-line invoice, while preserving the existing functional flow. The optimization is not specific to AvaTax and benefits the common `account.external.tax.mixin` flow when setting externally computed taxes on multiple lines. Profiler comparison: Before: <img width="1548" height="442" alt="image" src="https://github.com/user-attachments/assets/a5f2553c-a926-4324-88b2-743ed9214bf5" /> After: <img width="1429" height="440" alt="image" src="https://github.com/user-attachments/assets/c9c9c673-4654-4e11-b5f2-ffa4ecc87038" /> **opw-6472692** Forward-Port-Of: odoo/enterprise#130982