Hi
any one knows how to get only time in a field like fields.Time() to store only time that i select
i want a field which can store only time .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
any one knows how to get only time in a field like fields.Time() to store only time that i select
i want a field which can store only time .
Hi,
You can add Time fields through this way
Python:
time = fields.Float(string='Time', compute="_compute_time") |
Xml:
<field name="time" widget="float_time"/> |
You can calculate the time using the compute function.
Thank you.
you can try it
python
time = fields.float('Duration in hours ')
view
<field name='time' widget='float_time' />
thank you but
<field name="time" widget="float_time"/>
i try it before ,it shows value in formate like (11:56) and want to store value in like (11:52:12) format, and value is selected by user like happening in datetime field.
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
1
Aug. 17
|
5775 | ||
field does not exist PROBLEM
Gelöst
|
|
1
Dez. 16
|
5999 | |
|
3
Mai 25
|
1754 | ||
|
1
Apr. 25
|
1294 | ||
one2one relational field
Gelöst
|
|
3
Sept. 24
|
14207 |