summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJérémy Hennecart <jeh@odoo.com>2020-07-22 07:31:08 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-18 08:56:48 +0000
commit2c21301d314e4fd7c16ac88162786c096e9d80bd (patch)
tree4fecb868d6327748682b7fc3bf2c2352c7d74733 /doc
parent29b44207c9d59473c9532713aed20b01f6a36d0e (diff)
[IMP] web: manage invisible fields in graph and pivot view
PURPOSE Be able to remove some measures from graph / pivot views. Currently fields are automatically added but some of them make no sense. 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. LINKS Task ID-2288381 Community PR #54774 Enterprise PR odoo/enterprise#11970 Upgrade PR odoo/upgrade#1519
Diffstat (limited to 'doc')
-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: