Overview
Typing a time as free text leads to inconsistent formats. This module registers a timepicker field widget that shows a clock-style picker. It is a web asset module that plugs into any form view through the widget attribute. The benefit is faster, cleaner time entry on Char fields.
Usage steps
- 1
Register the widget
After installation the widget is added to the fields registry under the name timepicker. It is an OWL component with its own template. No menu is added.
- Registry: fields
- Widget name: timepicker
- 2
Apply it to a Char field
A developer sets widget="timepicker" on a Char field in a view. The widget works only with Char fields. On another field type a warning explains the limitation.
- Char fields only
- Warning on wrong type
- 3
Pick a time
The user clicks the field and a time picker popup appears. Hours and minutes are chosen with arrows. The selection is written back as text.
- Popup clock
- Value stored as text
- 4
Save the record
The time string is saved with the record like any Char value. Reports and search treat it as normal text. Formats stay consistent across users.
- Standard Char storage
- Consistent format
Screens
Illustrative mockups with placeholder data.
Roles
| Role |
|---|
| Odoo developers |
| All users entering times |
Dependencies
Want to know more or try this app? Contact us
We can arrange a demo or a trial and answer your questions about Field Time Picker.