---
title: "qweb_field_duration (Odoo)"
description: "itgen_odoo_qweb_field_duration"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.ir.qweb_field_duration
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.ir.qweb_field_duration
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# qweb_field_duration: Odoo itgen_odoo_qweb_field_duration

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `ir`
- Label: itgen_odoo_qweb_field_duration

Qweb Field Duration

Can only retrieve data.

## Summary

``duration`` converter, to display integral or fractional values as
    human-readable time spans (e.g. 1.5 as "1 hour 30 minutes").

    Can be used on any numerical field.

    Has an option ``unit`` which can be one of ``second``, ``minute``,
    ``hour``, ``day``, ``week`` or ``year``, used to interpret the numerical
    field value before converting it. By default use ``second``.

    Has an option ``round``. By default use ``second``.

    Has an option ``digital`` to display 01:00 instead of 1 hour

    Sub-second values will be ignored.

## Table Columns

The columns of the table `qweb_field_duration` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

