Skip to Content
Menu
This question has been flagged
2 Replies
3007 Views

How to add Time field in modles database??

Avatar
Discard
Author 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 

Avatar
Discard
Best Answer

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Discard


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

Related Posts Replies Views Activity
3
Dec 21
2781
3
Jul 23
3910
2
Mar 24
3996
1
Nov 22
3600
2
Oct 22
2309