diff options
| author | RomainLibert <rli@odoo.com> | 2018-07-11 12:21:07 +0200 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2018-07-13 16:11:28 +0200 |
| commit | 0bb5268cb31aa1944de86724b7ae36e15a7c2d80 (patch) | |
| tree | 29d723fb5509716d896987ac2b10e75ac6e86863 /doc/reference | |
| parent | dc9f942e0a2b8ef7022be1e6fd60d683017d6af3 (diff) | |
[DOC] add measure attribute to aggregate
Closes #25713
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/views.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 524ce783be8..568bd7eade7 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -830,7 +830,7 @@ element is ``<pivot>`` which can take the following attributes: The name of the measure and the order (asc or desc) to use as default order in the view. - .. code-block:: xml + .. code-block:: xml <pivot default_order="foo asc"> <field name="foo" type="measure"/> @@ -1312,6 +1312,15 @@ There are 5 possible type of tags in a dashboard view: - ``help`` (optional) A help message to dipslay in a tooltip (equivalent of help for a field in python) + - ``measure`` (optional) + This attribute is the name of a field describing the measure that has to be used + in the graph and pivot views when clicking on the aggregate. + The special value __count__ can be used to use the count measure. + + .. code-block:: xml + + <aggregate name="total_ojects" string="Total Objects" field="id" group_operator="count" measure="__count__"/> + ``formula`` declares a derived value. Formulas are values computed from aggregates. |
