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

I need to make time select-able in Datetime field in my form view of Odoo8. For example, when a user clicks on the field, he will be able to see only time drop-down for time and not date. 

Is there any widget available in Odoo 8 for this? 

P.S. I have used time_float, which asks user to enter time.

アバター
破棄
著作者

@Niyas that helped. Thank you so much.

P.S. I cannot convert your comment into answer and mark it "accepted" as i don't have enough Karma to do so :)

最善の回答

Hello Sana,  

you can try this :

In your .py

date_time : fields.datetime("Date Time")

and In your Xml : 

<field name="date_time"/>

i hope it help you..

Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
2
7月 18
7092
1
8月 15
4517
3
8月 20
9982
0
4月 18
5713
1
7月 16
5863