Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4593 Widoki

How to add Time field in modles database??

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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 

Awatar
Odrzuć
Najlepsza odpowiedź

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Awatar
Odrzuć


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

Powiązane posty Odpowiedzi Widoki Czynność
3
gru 21
4362
3
lip 23
5721
2
mar 24
5732
1
lis 22
5544
2
paź 22
3639