summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-09-13 19:30:33 +0200
committerChristophe Simonis <chs@odoo.com>2018-09-13 19:30:33 +0200
commitf3fa5a5ef7d2e86a38f988f799a0ea33304d1e14 (patch)
treea73fd937fa8f23ae016070ec14c0a2a21621ed68 /doc/reference
parent5cfd3d5fa022e8cafb3da3d2468cc8364f0e47b3 (diff)
parent1e0a92c99626c30aa7a196c1f970b75294dbf2d0 (diff)
[MERGE] forward port branch saas-11.3 up to 1e0a92c9962
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index cbb85b71c83..50f11f4173e 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -823,6 +823,18 @@ element is ``<pivot>`` which can take the following attributes:
The elements allowed within a pivot view are the same as for the graph view.
+In Pivot view a ``field`` can have a ``widget`` attribute to dictate its format.
+The widget should be a field formatter, of which the most interesting are
+``date``, ``datetime``, ``float_time``, and ``monetary``.
+
+For instance a timesheet pivot view could be defined as::
+
+ <pivot string="Timesheet">
+ <field name="employee_id" type="row"/>
+ <field name="date" interval="month" type="col"/>
+ <field name="unit_amount" type="measure" widget="float_time"/>
+ </pivot>
+
.. _reference/views/kanban:
Kanban