跳至内容
菜单
此问题已终结
2 回复
4488 查看

How to add Time field in modles database??

形象
丢弃
编写者 最佳答案

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 

形象
丢弃
最佳答案

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


形象
丢弃


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

相关帖文 回复 查看 活动
3
12月 21
4233
3
7月 23
5622
2
3月 24
5626
1
11月 22
5423
2
10月 22
3515