Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
8447 Widoki

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.

Awatar
Odrzuć
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 :)

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
Datetime in Odoo Rozwiązane
2
lip 18
7086
1
sie 15
4514
3
sie 20
9980
0
kwi 18
5711
1
lip 16
5861