Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4789 Visualizzazioni

How to add Time field in modles database??

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Risposta migliore

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Abbandona


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

Post correlati Risposte Visualizzazioni Attività
3
dic 21
4612
3
lug 23
5906
2
mar 24
5909
1
nov 22
5816
2
ott 22
3812