[IMP] web: hide seconds in datetime widgets

Task-2517675
This commit is contained in:
laro-odoo
2024-07-24 17:39:15 +05:30
committed by Mathieu Duckerts-Antoine
parent b9cdeb304a
commit b7dd4b6043

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.