[IMP] web: hide seconds in datetime widgets

Task-2517675

closes odoo/documentation#10326

Related: odoo/odoo#162373
Related: odoo/enterprise#61553
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
This commit is contained in:
laro-odoo 2024-07-24 17:39:15 +05:30 committed by Mathieu Duckerts-Antoine
parent e1df7a714b
commit b693187c7c

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.