Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4379 Zobrazení

How to add Time field in modles database??

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Zrušit


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

Related Posts Odpovědi Zobrazení Aktivita
3
pro 21
4131
3
čvc 23
5521
2
bře 24
5525
1
lis 22
5282
2
říj 22
3436