summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorlen-odoo <len@odoo.com>2018-09-06 11:34:02 +0200
committerChristophe Simonis <chs@odoo.com>2018-09-12 19:46:40 +0200
commit83292e522aabcf753fe1c55b76ce04eb961cd9ad (patch)
treefc544a4da6e65b72cfec7a38c9306f9bd64be50d /doc
parentdb0e84f3e364919baf7bb32ba0d44f10a0f76187 (diff)
[FIX] doc: add documentation for widget formatter support in pivot view
Commit: https://github.com/odoo/odoo/commit/8c1204954ef571e51e94ddf4070043ec2d5de3c6 put back support in v11 for formatter widgets in pivot views. We document this feature. opw 1876445
Diffstat (limited to 'doc')
-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 d23a0db9da3..59ee7dd5571 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