From 83292e522aabcf753fe1c55b76ce04eb961cd9ad Mon Sep 17 00:00:00 2001 From: len-odoo Date: Thu, 6 Sep 2018 11:34:02 +0200 Subject: [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 --- doc/reference/views.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/reference') 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 ```` 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:: + + + + + + + .. _reference/views/kanban: Kanban -- cgit v1.2.3