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

Task-3698841

closes odoo/documentation#10481

X-original-commit: 3badb434e1
Related: odoo/odoo#175257
Related: odoo/enterprise#67753
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 65385410b3
commit 58ab5ce442

View File

@ -707,6 +707,14 @@ Date & Time (`datetime`)
<field name="datetimefield" options="{'rounding': 10}" />
- `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.