Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4704 Vizualizări

How to add Time field in modles database??

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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 

Imagine profil
Abandonează
Cel mai bun răspuns

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Imagine profil
Abandonează


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

Related Posts Răspunsuri Vizualizări Activitate
3
dec. 21
4521
3
iul. 23
5840
2
mar. 24
5835
1
nov. 22
5693
2
oct. 22
3732