[IMP] web: make date widget work with datetime field

Task-3698841

closes odoo/documentation#10603

X-original-commit: fea873780d
Related: odoo/odoo#175743
Related: odoo/enterprise#67988
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
This commit is contained in:
laro-odoo 2024-07-24 11:47:46 +00:00 committed by Mathieu Duckerts-Antoine
parent 64f4e8d46c
commit 47a8a8b1e3

View File

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