mirror of
https://github.com/odoo/documentation.git
synced 2026-01-02 09:49:17 +07:00
[IMP] core: introduce search_fetch() and fetch()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
=================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user