Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
8437 มุมมอง

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

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Datetime in Odoo แก้ไขแล้ว
2
ก.ค. 18
7083
From Datetime to Date แก้ไขแล้ว
1
ส.ค. 15
4513
3
ส.ค. 20
9977
0
เม.ย. 18
5708
1
ก.ค. 16
5859