Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
8446 Prikazi

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.

Avatar
Opusti
Avtor

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

Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jul. 18
7085
1
avg. 15
4514
3
avg. 20
9979
0
apr. 18
5710
1
jul. 16
5860