From d6760a52a623aebf73288f112b4fd47d40acaa00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Tue, 12 Nov 2024 11:37:28 +0100 Subject: [PATCH] [IMP] orm: deprecated read_group --- content/developer/reference/backend/orm.rst | 2 +- content/developer/reference/backend/orm/changelog.rst | 2 ++ .../reference/user_interface/view_architectures.rst | 6 ++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/developer/reference/backend/orm.rst b/content/developer/reference/backend/orm.rst index 638cd9d728..ae76f931d8 100644 --- a/content/developer/reference/backend/orm.rst +++ b/content/developer/reference/backend/orm.rst @@ -888,7 +888,7 @@ Search/Read .. automethod:: Model._read_group -.. automethod:: Model.read_group +.. automethod:: Model.search_read_group Fields ~~~~~~ diff --git a/content/developer/reference/backend/orm/changelog.rst b/content/developer/reference/backend/orm/changelog.rst index 6614540700..1392ee3e45 100644 --- a/content/developer/reference/backend/orm/changelog.rst +++ b/content/developer/reference/backend/orm/changelog.rst @@ -10,6 +10,8 @@ Odoo Online version 18.1 - Declare constraints and indexes as model attributes with `#175783 `_. - The `json` controllers have been renamed to `jsonrpc`. They are called the same, only the `type` in the python files changed. See `#183636 `_. +- `read_group` has been deprecated in favor to the new API search_read_group or web_read_group if + formatted result is necessary. See `#163300 `_. Odoo version 18.0 ================= diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index 0d3eafa5f8..14b9ad006c 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -2053,9 +2053,7 @@ The `filter` element can have the following attributes: the :guilabel:`Group By` menu. When the field is of type `date` or `datetime`, the filter generates a submenu of the :guilabel:`Group By` menu with the following interval options available: :guilabel:`Year`, :guilabel:`Quarter`, :guilabel:`Month`, :guilabel:`Week`, and - :guilabel:`Day`. When the filter is in the default set of filters activated at the view - initialization, the records are grouped by month by default. This can be changed by using the - syntax `date_field:interval`. + :guilabel:`Day`. .. example:: .. code-block:: xml @@ -2064,7 +2062,7 @@ The `filter` element can have the following attributes: .. note:: - The results of `read_groups` grouped on a field may be influenced by its `group_expand` + The results of `web_read_group` grouped on a field may be influenced by its `group_expand` attribute, allowing to display empty groups when needed. For more information, please refer to :class:`~odoo.fields.Field`.