summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorOdoo's Mergebot <robodoo@odoo.com>2020-08-18 12:44:27 +0200
committerGitHub <noreply@github.com>2020-08-18 12:44:27 +0200
commiteee563ae1a0c17dbecefbbaa64bd4765c8a80350 (patch)
treecacc70a41777ba213bd54a4d02b8f69cb8a3ba30 /doc/reference
parent29b44207c9d59473c9532713aed20b01f6a36d0e (diff)
parentd8635586630ff8c47fff26ca9c6a20a6bb459489 (diff)
[MERGE] crm_*: hide irrelevant measures from graph/pivot views
PURPOSE Support invisible attributes to remove irrelevant fields in standard views. SPECIFICATIONS Add the possibility to not display some fields in the measures dropdown for the graph and pivot views. When a field is not displayed in the measures of a pivot views we remove them also from the list of groupable fields. Update CRM addons to hide irrelevant measures. LINKS Task ID-2288381 Community PR #54774 Enterprise PR odoo/enterprise#11970 Upgrade PR odoo/upgrade#1519 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index a336af9dbf6..1ad8253b3f1 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -497,6 +497,19 @@ attributes:
A field that can be aggregated. This field will be used to compute the values
for each cell. If not set, the cohort view will count the number of occurrences.
+``<field>`` (optional)
+ allows to specify a particular field in order to manage it from the available measures, it's
+ main use is for hiding a field from the selectable measures:
+ * ``name`` (required)
+ the name of the field to use in the view.
+ * ``string`` (optional)
+ the name that would be used to display the field in the cohort view, overrides the
+ default python String attribute of the field.
+ * ``invisible`` (optional)
+ if true, the field will not appear either in the active measures nor in the selectable
+ measures (useful for fields that do not make sense aggregated, such as fields in different
+ units, e.g. € and $).
+
.. _reference/views/dashboard:
Dashboard
@@ -1109,6 +1122,10 @@ following attributes:
``title`` (optional)
string displayed on the top of the graph.
+``invisible`` (optional)
+ if true, the field will not appear either in the active measures nor in the
+ selectable measures.
+
``type``
indicates whether the field should be used as a grouping criteria or as an
aggregated value within a group. Possible values are: