Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4895 Näkymät

How to add Time field in modles database??

Avatar
Hylkää
Tekijä Paras vastaus

hi kiran k 

thank u for your help 

it is not working as when you try to record time format such 10:50, invalid error message shows. in order to save the window after editing i have to record time format in float like 10.50 but when saving, it appears in the report 10:39 in time format.

another problem when i import excel sheet consisting of times, it show me an error that i can not import 

Avatar
Hylkää
Paras vastaus

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Hylkää


<field name="time" widget="float_time"/>

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
jouluk. 21
4690
3
heinäk. 23
5995
2
maalisk. 24
5985
1
marrask. 22
5924
2
lokak. 22
3904