[IMP] core: introduce search_fetch() and fetch()

This commit is contained in:
Raphael Collet
2023-03-07 11:52:41 +01:00
parent d85715a176
commit 0a2aa8fbc8
2 changed files with 13 additions and 0 deletions

View File

@@ -845,8 +845,12 @@ Search/Read
.. automethod:: Model.search_count
.. automethod:: Model.search_fetch
.. automethod:: Model.name_search
.. automethod:: Model.fetch
.. automethod:: Model.read
.. automethod:: Model.read_group

View File

@@ -4,6 +4,15 @@
Changelog
=========
Odoo Online version 16.2
========================
- Refactor the implementation of searching and reading methods to be able to
combine both in a minimal number of SQL queries. We introduce two new methods
`odoo.models.Model.search_fetch` and `odoo.models.Model.fetch` that take
advantage of the combination. More details can be found on the pull request
`#112126 <https://github.com/odoo/odoo/pull/112126>`_.
Odoo version 16.0
=================