ingadhoc/account-payment#855
Created by rov-adhoc
Blocked
- Merge method
- Review
- Bump policy
-
CI
- ci/runbot-oba: Odoo by Adhoc with tests
- ci/runbot-modified-modules: (runtime 0s)
- mergebot/pre-commit
- label
- adhoc-dev:18.0-t-52412-rov-4
- head
- c7ec886d067f6d95df802c72002c1237cfe09bc3
| ingadhoc/account-payment | |
|---|---|
| 18.0 | #855 missing r+ |
| 19.0 |
[IMP] l10n_latam_check_ux: optimize partner credit calculation with read_group
Replace multiple search queries with a single read_group operation in res.partner._credit_debit_get() method.
Previously, the method executed one search query per partner with add_check_credit enabled, resulting in N queries when processing multiple partners.
Now uses read_group to aggregate check amounts in a single database query, storing results in a dictionary for O(1) lookup. This significantly improves performance when calculating credit for multiple partners simultaneously.