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 to specify the time on that date, setting the default time value on the field in the Form view allows to ensure the commitment date will be set to this time instead of the time when the page was loaded by the browser.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets developers set a default time on date-time fields, so when a user picks only a date the time is filled automatically instead of using the current browser time.
This module changes how date and time fields behave in Odoo forms and lists. Normally, when a user types or picks only a date in a date-time field, Odoo fills in the time from the moment the page was loaded. With this module, the field can be configured with a fixed default time, so the saved value always uses that time.
- It works on single date-time fields, where a
defaultTimecan be set. - It also works on date ranges, where a
defaultStartTimeand adefaultEndTimecan be set for the start and end of the range. - The default time can be given directly as a fixed value, or it can come from another field on the same record, so the time can change depending on the record.
- The behaviour applies both in form views and in list views.
There are no new menus, screens or reports. The module only extends the existing date-time picker and date-time field components, so the change is visible wherever those fields are used. No new database models are added and no scheduled actions or emails are created. The module is a technical/UI extension intended for developers who configure views.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0Static Default Time You can define the default time as follows for a static value For widget="datetime":
<field name="your_datetime_field" widget="datetime" options="{'defaultTime': {'hour': 8, 'minute': 30, 'second': 15 }}"/>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")
def _compute_start_time(self):
for rec in self:
rec.start_time = {'hour': 8, 'minute': 30, 'second': 15 }<field name="start_time" invisible="1" />
<field name="your_datetime_field" options="{'defaultTime': 'start_time'}"/>No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.