Compare commits

...

1 Commits

Author SHA1 Message Date
Rémy Voet (ryv)
fc2e3310be [IMP] orm: update changelog for the new flush strategy 2024-01-15 10:53:13 +01:00
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_admin
.. automethod:: Environment.is_system
.. automethod:: Environment.execute_query
Altering the environment
------------------------

View File

@@ -4,6 +4,17 @@
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
=================