Tuesday, November 11, 2025
1 change · 18.0
Enhancements to existing features
This change speeds up how Odoo calculates amounts on accounting entries by loading needed data more efficiently. It reduces waiting time, memory use, and database calls when processing large reconciliations, which should make 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