From 5bf5d45b7d1ac381a1419c010352e56b79515599 Mon Sep 17 00:00:00 2001 From: RomainLibert Date: Fri, 6 Jul 2018 09:43:50 +0200 Subject: [PATCH] [DOC] dashboard: add help attribute and mention count_distinct Documentation needed some update --- doc/reference/views.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/reference/views.rst b/doc/reference/views.rst index f8a87032a0e..f91dbbaba21 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1284,10 +1284,14 @@ There are 5 possible type of tags in a dashboard view: If not provided, By default, the group_operator from the field definition is used. Note that no aggregation of field values is achieved if the group_operator value is "". + .. note:: The special aggregate function ``count_distinct`` (defined in odoo) can also be used here + .. code-block:: xml + + - ``col`` (optional) The number of columns spanned by this tag (only makes sense inside a group). By default, 1. @@ -1296,6 +1300,9 @@ There are 5 possible type of tags in a dashboard view: A widget to format the value (like the widget attribute for fields). For example, monetary. + - ``help`` (optional) + A help message to dipslay in a tooltip (equivalent of help for a field in python) + ``formula`` declares a derived value. Formulas are values computed from aggregates. @@ -1324,6 +1331,9 @@ There are 5 possible type of tags in a dashboard view: A widget to format the value (like the widget attribute for fields). For example, monetary. By default, it is 'float'. + - ``help`` (optional) + A help message to dipslay in a tooltip (equivalent of help for a field in python) + ``widget`` Declares a specialized widget to be used to display the information. This is a mechanism similar to the widgets in the form view.