From 992e63604f6e2b797e978e05680583799bcc5446 Mon Sep 17 00:00:00 2001 From: "Julien Carion (juca)" Date: Fri, 14 Nov 2025 20:45:03 +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#15263 Forward-port-of: 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 2b2b2d01f..03af206bc 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`, @@ -787,6 +794,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`.