summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-09-13 12:42:01 +0200
committerChristophe Simonis <chs@odoo.com>2018-09-13 12:42:01 +0200
commit1e0a92c99626c30aa7a196c1f970b75294dbf2d0 (patch)
tree234646317bbf0152a1a72e32088e5bce7deb655c /doc
parentc8371261dc066cbc049b5f75083993fcd1fa329f (diff)
parent5cb9f8e9d5e14850e8935327aa73de16cf981f46 (diff)
[MERGE] forward port branch 11.0 up to 5cb9f8e9d5e
Diffstat (limited to 'doc')
-rw-r--r--doc/cla/corporate/initos.md1
-rw-r--r--doc/reference/views.rst12
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/cla/corporate/initos.md b/doc/cla/corporate/initos.md
index 3c95fe2d07f..dd7fb8ea0e5 100644
--- a/doc/cla/corporate/initos.md
+++ b/doc/cla/corporate/initos.md
@@ -21,3 +21,4 @@ Peter Hahn peter.hahn@initos.com https://github.com/codingforfun
Claudia Haida claudia.haida@initos.com
Andreas Zöllner andreas.zoellner@initos.com https://github.com/azoellner
Rami Alwafaie rami.alwafaie@initos.com https://github.com/rami-wafaie
+Florian Kantelberg florian.kantelberg@initos.com https://github.com/fkantelberg
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 0a541f162ea..cc165285915 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -808,6 +808,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