From 0632e515da404ee37ef620f2ab2d669f09e08243 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 5 Mar 2025 11:13:39 +0100 Subject: [PATCH] [IMP] developer/../view_architectures: add `aggregate` option This commit documents the new `aggregate` attribute of the calendar view. Part of task~4510549 Part-of: odoo/documentation#12262 Signed-off-by: Antoine Vandevenne (anv) --- .../reference/user_interface/view_architectures.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index c1374aa0b..fa61307cf 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -3264,6 +3264,18 @@ Their root element is ````. Available attributes on the root node are: :requirement: Optional :type: str +.. attribute:: aggregate + :noindex: + + Name of the record's field to use to display aggregated values next to + filters, in the filter side panel. The aggregator can be explicitly given + (e.g. `aggregate="expected_revenue:sum"`). If not given, the aggregator of + the field is used. Supported aggregators are `sum`, `avg`, `min`, `max`, + `count` and `count_distinct`. + + :requirement: Optional + :type: str + .. attribute:: event_limit :noindex: