Sunday, February 22, 2026
1 change · master
Enhancements to existing features
Indian tax tag checks now run only for accounting entries that are relevant to Indian localization, avoiding extra work in other cases. The lookup method was also optimized and cached, helping invoice-related workflows run more efficiently without changing user-facing 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 Forward-Port-Of: odoo/odoo#248960