From 99751542c79a0b3c3ade313d0947bacb19a80822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Mon, 5 Feb 2024 10:46:50 +0100 Subject: [PATCH] [IMP] orm: renaming of group_operator -> aggregator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/documentation#5541 Related: odoo/enterprise#46795 Related: odoo/odoo#127353 Signed-off-by: Rémy Voet (ryv) --- content/developer/howtos/create_reports.rst | 2 +- content/developer/reference/backend/orm/changelog.rst | 2 ++ .../developer/reference/user_interface/view_architectures.rst | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/content/developer/howtos/create_reports.rst b/content/developer/howtos/create_reports.rst index d2a8a1254..9d3857217 100644 --- a/content/developer/howtos/create_reports.rst +++ b/content/developer/howtos/create_reports.rst @@ -110,7 +110,7 @@ Extra tips .. tip:: A common mistake in SQL views is not considering the duplication of certain data - due to table JOINs. This can lead to miscounting when using a field's `group_operator` + due to table JOINs. This can lead to miscounting when using a field's `aggregator` and/or the pivot view. It is best to test your SQL view with sufficient data to ensure the resulting field values are as you expect. diff --git a/content/developer/reference/backend/orm/changelog.rst b/content/developer/reference/backend/orm/changelog.rst index 6d42376f8..00d49b030 100644 --- a/content/developer/reference/backend/orm/changelog.rst +++ b/content/developer/reference/backend/orm/changelog.rst @@ -7,6 +7,8 @@ Changelog Odoo Online version 17.2 ======================== +- The :attr:`group_operator` attribute of :class:`~odoo.fields.Field` is renamed into + :attr:`aggregator` with `#127353 `_. - We can now group/aggregate/order by related no-store field with `#127353 `_. diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index 93a7f5040..22a7c7244 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -1400,7 +1400,7 @@ The `field` element can have the following attributes: The aggregate to display at the bottom of the column. The aggregation is computed on only records that are currently displayed. The aggregation operation must match the corresponding - field's `group_operator`. + field's `aggregator`. .. example:: .. code-block:: xml