summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-02-20 10:55:35 +0100
committerGéry Debongnie <ged@odoo.com>2015-03-11 10:52:02 +0100
commit6de2fa858ae3b655b95a08f3bc449bb9425ea6de (patch)
tree3b0c95503270ba77dde91201452c56ec37e24f63 /doc
parent51cdceba3ed8d8fd0b71838c111110727d8da3d4 (diff)
[IMP] doc: separate pivot view
the type="pivot" attribute doesn't seem to work, in the code when it works, `<pivot>` is used and has two undocumented attributes.
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/views.rst19
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 7f67bfbc092..4a37b50e178 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -750,9 +750,7 @@ record groups. Its root element is ``<graph>`` which can take the following
attributes:
``type``
- one of ``bar`` (default), ``pie``, ``line`` and ``pivot``, the type of graph
- to use (``pivot`` technically isn't a graph type, it displays the
- aggregation as a `pivot table`_)
+ one of ``bar`` (default), ``pie`` and ``line``, the type of graph to use
``stacked``
only used for ``bar`` charts. If present and set to ``True``, stacks bars
within a group
@@ -770,7 +768,7 @@ following attributes:
``row`` (default)
groups by the specified field. All graph types support at least one level
- of grouping, some may support more. For pivot tables, each group gets its
+ of grouping, some may support more. For pivot views, each group gets its
own row.
``col``
only used by pivot tables, creates column-wise groups
@@ -787,6 +785,19 @@ following attributes:
graph view aggregations are performed on database content, non-stored
function fields can not be used in graph views
+Pivots
+------
+
+The pivot view is used to visualize aggregations as a `pivot table`_. Its root
+element is ``<pivot>`` which can take the following attributes:
+
+``disable_linking``
+ Set to ``True`` to remove table cell's links to list view.
+``display_quantity``
+ Set to ``true`` to display the Quantity column by default.
+
+The elements allowed within a pivot view are the same as for the graph view.
+
.. _reference/views/kanban:
Kanban