From 0ee3c034d23205117ecff2131aa7015865785cf1 Mon Sep 17 00:00:00 2001 From: sami odoo Date: Fri, 2 Aug 2024 12:19:11 +0000 Subject: [PATCH] [IMP] reference/user_interface: update documentation regarding widget in graph This commit aims to update the documentation regarding the adaptability of widgets in the graph view of Odoo. Task-3861721 closes odoo/documentation#10606 X-original-commit: 9dc985ef47ddf3244cec897d64e3b0ac07c56f51 Signed-off-by: Mathieu Duckerts-Antoine (dam) --- .../reference/user_interface/view_architectures.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index c08e8031e..8fae414d0 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -2908,6 +2908,15 @@ sorted on the string of the field. graph view aggregations are performed on database content, non-stored function fields can not be used in graph views + +In Graph views, a ``field`` can have a ``widget`` attribute to dictate its format. +The widget should be a field formatter, of which the most interesting are +``float_time``, and ``monetary``. + +.. code-block:: xml + + + .. _reference/view_architectures/pivot: Pivot