Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
8051 Vistas

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
Descartar
Autor

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

Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 18
6651
1
ago 15
4131
3
ago 20
9438
0
abr 18
5165
1
jul 16
5258