From 6cfaf2efe1e928425fd706c81c43222d3afb38bb Mon Sep 17 00:00:00 2001 From: "Julien Carion (juca)" Date: Thu, 13 Nov 2025 15:19:00 +0000 Subject: [PATCH] [IMP] developer/javascript_reference: `hide_trailing_zeros` field option This commit adds the documentation that was missing for https://github.com/odoo/odoo/pull/208451 task-4626715 closes odoo/documentation#15241 Signed-off-by: Antoine Vandevenne (anv) --- .../reference/frontend/javascript_reference.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index 18649cfcf..a15897d21 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -625,6 +625,13 @@ Float (`float`) + - `hide_trailing_zeros`: hide zeros to the right of the last non-zero digit, + e.g. `1.20` becomes `1.2` (`false` by default). + + .. code-block:: xml + + + Time (`float_time`) The goal of this widget is to display properly a float value that represents a time interval (in hours). So, for example, `0.5` should be formatted as `0:30`, @@ -767,6 +774,13 @@ Monetary (`monetary`) + - `hide_trailing_zeros`: hide zeros to the right of the last non-zero digit, + e.g. `1.20` becomes `1.2` (`false` by default). + + .. code-block:: xml + + + Text (`text`) This is the default field type for fields of type `text`.