This module customizes the datetime picker widget and allows to define a
default time to be applied in case the user selects only a Date.
For example, if a user wants to define a commitment date without having
@@ -386,19 +386,26 @@
-
You can define the default time as follows for a static value:
+
Static Default Time You can define the default time as follows for a
+static value For widget="datetime":
-<field name="your_datetime_field" options="{'defaultTime': {'hour': 8, 'minute': 30, 'second': 15 }}"/>
+<field name="your_datetime_field" widget="datetime" options="{'defaultTime': {'hour': 8, 'minute': 30, 'second': 15 }}"/>
-
Otherwise you can also use a JSON field to make it dynamic through a
-compute function, and reference this field in the view:
+
For widget="daterange":
+
+<field name="your_start_datetime_field" widget="datetime" options="{'end_date_field': 'your_end_datetime_field', 'defaultStartTime': {'hour': 2, 'minute': 22, 'second': 22,}, 'defaultEndTime': {'hour': 3, 'minute': 33, 'second': 33,}}"/>
+
+
Dynamic Default Time Otherwise you can also use a JSON field to make
+it dynamic through a compute function, and reference this field in the
+view:
start_time = field.Json(compute="_compute_start_time")
@@ -422,7 +429,7 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.