Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
8455 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

@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 :)

Câu trả lời hay nhất

Please check with this module, https://www.odoo.com/apps/modules/8.0/odoo_timepicker/#

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Datetime in Odoo Đã xử lý
2
thg 7 18
7092
1
thg 8 15
4517
3
thg 8 20
9982
0
thg 4 18
5713
1
thg 7 16
5863