Tuesday, November 11, 2025
1 change · 19.0
Enhancements to existing features
This update speeds up how Odoo calculates amounts on account moves, especially when processing records with many lines. It reduces waiting time, memory usage, and database load, which should make large reconciliation and accounting operations noticeably faster.
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