Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
8452 Переглядів

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
7091
From Datetime to Date Вирішено
1
серп. 15
4516
3
серп. 20
9982
0
квіт. 18
5713
1
лип. 16
5863