[IMP] orm: renaming of group_operator -> aggregator

closes odoo/documentation#5541

Related: odoo/enterprise#46795
Related: odoo/odoo#127353
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
This commit is contained in:
Rémy Voet (ryv) 2024-02-05 10:46:50 +01:00 committed by Raphael Collet
parent ad749706ec
commit 99751542c7
3 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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 <https://github.com/odoo/odoo/pull/127353>`_.
- We can now group/aggregate/order by related no-store field with
`#127353 <https://github.com/odoo/odoo/pull/127353>`_.

View File

@ -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