コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4478 ビュー

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
4221
3
7月 23
5612
2
3月 24
5617
1
11月 22
5403
2
10月 22
3504