Friday, February 20, 2026
2 changes · 19.0
Enhancements to existing features
Indian tax tag checks now run only when they are relevant to Indian localization, reducing unnecessary work during invoice processing. The lookup method was also optimized so common invoice actions can complete more efficiently without changing business behavior.
Original PR description
Before this commit: - `_get_l10n_in_tax_tag_ids()` was executed for moves unrelated to Indian localization, causing unnecessary processing. - Profiling showed repeated `env.ref` lookups (>≈1.6% transactions each) even for a simple invoice flow (create → add products → post). After this commit: - Restrict execution to Indian-specific moves only. - Replace `env.ref` with `_xmlid_to_res_id` for faster XMLID resolution. task-5935607
This update expands the range of Automatic Value-Added Tax (AVS) deductions within the Odoo Enterprise payroll module. Specifically, five new generic AVS codes have been added to ensure greater flexibility and accuracy in tax calculations for Swiss businesses. A new test has been implemented to verify the correct application of these deductions.
Original PR description
5 more generic AVS is added to l10n_ch_hr_payroll/hr_salary_rule_data and /hr_payroll_input_types. task - 5902593 Forward-Port-Of: odoo/enterprise#106218