From 4c1feefd13b6b63798be89005c60baff1d677567 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Mon, 4 Nov 2019 15:25:17 +0000 Subject: [IMP] web: Numeric fields can be non-formatted This commit introduces a new option in fields inheriting from type Numeric which is `format`. By default, Numeric fields are formatted according to their subtypes and locale Adding, in a view, the option format set to a falsy value will prevent the field's value from being formatted. ``` ``` Task 2050119 --- doc/reference/javascript_reference.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/reference/javascript_reference.rst') diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index f2b9685006f..9069916a250 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1570,6 +1570,15 @@ order. + - format: should the number be formatted. (true by default) + + By default, numbers are formatted according to locale parameters. + This option will prevent the field's value from being formatted. + + .. code-block:: xml + + + - float (FieldFloat) This is the default field type for fields of type *float*. @@ -1602,6 +1611,15 @@ order. + - format: should the number be formatted. (true by default) + + By default, numbers are formatted according to locale parameters. + This option will prevent the field's value from being formatted. + + .. code-block:: xml + + + - float_time (FieldFloatTime) 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, -- cgit v1.2.3