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

Task-3698841

closes odoo/documentation#10545

X-original-commit: 3badb434e1
Related: odoo/odoo#175419
Related: odoo/enterprise#67835
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 9c7b6240e3
commit e57459112b

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.