Compare commits

...

1 Commits

Author SHA1 Message Date
laro-odoo
b7dd4b6043 [IMP] web: hide seconds in datetime widgets
Task-2517675
2024-07-30 16:42:28 +02:00

View File

@@ -707,6 +707,14 @@ Date & Time (`datetime`)
<field name="datetimefield" options="{'rounding': 10}" />
- `show_seconds`: when set to false, it hides the seconds from the datetime field.
The field will still accept datetime values, but the seconds will be hidden in
the UI (default: `true`).
.. code-block:: xml
<field name="datetimefield" widget="datetime" options="{'show_seconds': false}" />
Date Range (`daterange`)
This widget allows the user to select start and end date from a single picker.