跳至內容
選單
此問題已被標幟
2 回覆
4753 瀏覽次數

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
4573
3
7月 23
5892
2
3月 24
5875
1
11月 22
5757
2
10月 22
3787