odoo/upgrade-util#362
Created by Upgrade, Carsten Wolff (cawo)
Merged
at 9a1be7d440f9fdb667c0a797636884344db170a1
Statuses:
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
Linked pull requests
- label
- odoo-dev:master-imp_iter_browse_yield_chunks-cawo
- head
- a017851ac99fb80d5b7fb04193000c0cb186152e
- merged
- 1 week ago by Platform, Nicolas Seinlet (nse)
| odoo/upgrade | odoo/upgrade-util | |
|---|---|---|
| master | #8987 | #362 |
[IMP] orm: add option to iter_browse for yielding chunks
The iter_browse class already loads records in chunks, but the iterator returned by __iter__ always yields single records. Here we add a flag to the constructor (default False) that when set to True will make __iter__ return an iterator that yields chunks of the same size as it is loading (i.e. chunk_size).