Tuesday, November 11, 2025
1 change · saas-18.4
Enhancements to existing features
This change speeds up the calculation of move amounts in Accounting by reducing unnecessary data lookups. It makes large reconciliation tasks run significantly faster and use less memory, improving overall responsiveness for heavy accounting operations.
Original PR description
Currently performance on `_compute_amount()` is bottlenecked by `__get__()` calls on fields on `line_ids`. We tackle this bottleneck by warming the cache with `fetch()` Benchmark on reconciling 2 account moves with ~70k lines each | |Total Time|Allocated Memory|Queries| |----------|----------|----------------|-------| |Before |43.23s |2GB |993 | |After |18.60s |1GB |693 | opw-5098543 Forward-Port-Of: odoo/odoo#234656