[IMP] orm: update changelog for the new flush strategy

closes odoo/documentation#7194

Related: odoo/upgrade#5469
Related: odoo/odoo#144747
Related: odoo/enterprise#53380
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
This commit is contained in:
Rémy Voet (ryv) 2023-12-28 10:37:16 +01:00
parent d07052aa57
commit be60243eff
2 changed files with 12 additions and 0 deletions

View File

@ -693,6 +693,7 @@ Useful environment methods
.. automethod:: Environment.is_superuser .. automethod:: Environment.is_superuser
.. automethod:: Environment.is_admin .. automethod:: Environment.is_admin
.. automethod:: Environment.is_system .. automethod:: Environment.is_system
.. automethod:: Environment.execute_query
Altering the environment Altering the environment
------------------------ ------------------------

View File

@ -4,6 +4,17 @@
Changelog Changelog
========= =========
Odoo Online version 17.1
========================
- Method :meth:`~odoo.models.Model._flush_search` has been deprecated with
`#144747 <https://github.com/odoo/odoo/pull/144747>`_.
The flushing of fields is now done by :meth:`~odoo.api.Environment.execute_query`,
and is based on metadata put in the :class:`~odoo.tools.SQL` object by
:meth:`~odoo.models.BaseModel._search` and other low-level ORM methods that
build such objects. Those methods are also responsible for checking the access
rights on the fields that are used in the SQL object.
Odoo version 17.0 Odoo version 17.0
================= =================