timesheet_duration_uom
The same number is 7.5 hours or 0.94 days depending on how your company records time. This widget picks the right renderer, and swaps in an hours-only variant when the setting says time.
August 27, 2026Updated September 2, 20265 min read
| Technical name | timesheet_duration_uom |
|---|---|
| Field types | float |
| Views | form, list, kanban |
| Module | hr_timesheet, the Timesheets app |
| Used in core | 1 occurrence, the duration column on the timesheet views in hr_timesheet |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0 |
| No-code setup | No. It depends on the timesheet unit service and its companion components |
| Alternatives | timesheet_uom, timesheet_uom_no_toggle, float_time, float |
What the timesheet duration field does
What this means for your team
Working examples
One getter, resolved through a service
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Byte-identical to Odoo 19 on the development branch. |
| Odoo 19.0 | Verified | Verified against the shipped source. Byte-identical to Odoo 18. |
| Odoo 18.0 | Verified | First version. |
| Odoo 17.0 | Not available | Widget does not exist. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. Nothing to do. The widget arrived in Odoo 18 and the Odoo 18 and Odoo 19 files are byte-identical. Databases coming from Odoo 17 gain it with the standard timesheet views.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Durations show in the wrong unit | The company's timesheet unit setting is not what you expect; the widget follows it. Change the setting rather than the view. |
| A duration over 24 hours looks wrong | The field is using a clock-oriented widget rather than this one. Use timesheet_duration_uom, which substitutes a duration-aware hour component. |
| Options are ignored | The registration has no extractor and no supported types. Nothing to configure here. |
| Custom views still show a raw decimal | They use a plain float field rather than one of the timesheet widgets. Switch the field to this widget so it follows the company setting. |
| Missing widget error | The timesheets module is not installed in that database. Install Timesheets. |
Timesheet duration field vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
timesheet_duration_uom | Timesheet durations that must follow the company's recording unit | Substitutes a duration-aware hour component when the unit is hours and minutes |
| timesheet_uom | General unit-aware timesheet quantities | No special handling for the hours case |
| timesheet_uom_no_toggle | The same without the unit toggle | Removes the affordance to switch units in place |
| float_time | Values that are always hours and minutes | Ignores the company setting entirely |
| float | An ordinary decimal | No time formatting at all |
Frequently asked questions
What does timesheet_duration_uom decide?+
Why a separate hour component?+
Does it take any options?+
How do I change the unit?+
Which versions have it?+
Timesheets people actually fill in
Recording units, approval flows and the billing rules behind them decide whether timesheets are a habit or a monthly chase. We implement Odoo Timesheets and the invoicing that follows, on versions 16 through 19.
Book a free consultation