[FIX] web: Make datetimepicker configurable in datetime fields

The datetimepicker option was introduced to be able to customize the
datetime picker widget in date/datetime fields. However, due to the way
the _makeDatePicker function was coded, it did not work in datetime
fields.

Thank to Yajo for the initial fix

closes odoo/odoo#27541
This commit is contained in:
svs-odoo
2018-10-09 12:34:23 +00:00
committed by Géry Debongnie
parent b732ab3dc9
commit 078b31dc7f
3 changed files with 45 additions and 11 deletions
+1 -1
View File
@@ -1348,7 +1348,7 @@ order.
.. code-block:: xml
<field name="datefield" options='{"datepicker": {"daysOfWeekDisabled": [0, 6]}}'/>
<field name="datetimefield" options='{"datepicker": {"daysOfWeekDisabled": [0, 6]}}'/>
- monetary (FieldMonetary)
This is the default field type for fields of type 'monetary'. It is used to