Skip to Content
Time Widget
time_widget

Time Widget

A time input widget for character fields.

  • Odoo 18
  • Tools & Administration
  • 18.0
1

Overview

Storing times in plain text fields invites typing mistakes. This module provides a time picker widget that developers apply to a character field in a form view. Users pick or type a time and the value is stored as text. It is a developer helper for any module that needs a simple time field.

2

Usage steps

  1. 1

    Apply the widget to a field

    Developers set the time widget on a character field in a form view. No model change is needed.

    • widget attribute on char field
  2. 2

    Enter time values

    Users pick or type a time value in the field and it is stored as text. The input follows a fixed time format.

    • Time picker input
  3. 3

    Validate the format

    The component normalizes the entered value so malformed times are corrected or rejected. Records keep clean text.

    • Client-side normalization
  4. 4

    Reuse across modules

    Any module can depend on the widget and reuse it on several fields. It ships only web assets and templates.

    • Owl template
    • No dependencies
4

Roles

Benefiting roles
Role
Developer
Any internal user
5

Dependencies

Back to version applications

Want to know more or try this app? Contact us

We can arrange a demo or a trial and answer your questions about Time Widget.

Contact us