mirror of
https://github.com/odoo/documentation.git
synced 2026-01-02 01:39:19 +07:00
[IMP] web: hide seconds in datetime widgets
Task-2517675
This commit is contained in:
committed by
Mathieu Duckerts-Antoine
parent
b9cdeb304a
commit
b7dd4b6043
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user