Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
8651 Vues

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
Ignorer
Auteur

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

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
juil. 18
7355
1
août 15
4773
3
août 20
10355
0
avr. 18
6094
1
juil. 16
6269