Skip to content

Latest commit

 

History

History

web_widget_time_delta

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Timedelta widget for Odoo web client

Features

Usage

You need to declare a integer field Default set second.

duration = fields.integer(
string="Duration", help="Set Duration", default="60"

)

In the view declaration, put widget='time_delta' for Form and widget='time_delta_list' for List

... <field name="arch" type="xml">

<tree string="View name">
... <field name="duration" widget="time_delta_list"/> ...

</tree>

</field> ...

... <field name="arch" type="xml">

<form string="View name">
... <field name="duration" widget="time_delta"/> ...

</rom>

</field> ...