Skip to Content
Menu
This question has been flagged
2 Replies
4363 Rodiniai

How to add Time field in modles database??

Portretas
Atmesti
Autorius Best Answer

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 

Portretas
Atmesti
Best Answer

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Portretas
Atmesti


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

Related Posts Replies Rodiniai Veikla
3
gruod. 21
4100
3
liep. 23
5513
2
kov. 24
5506
1
lapkr. 22
5254
2
spal. 22
3422