Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2469 Представления

How can i remove the seconds of a datetime field from a tree view 

or from python side 

Here is my code.

x.py - file

start_time = fields.Datetime(string='Start Time', required=True)
end_time = fields.Datetime(string='End Time', required=True)

In xml code already 'daterange' widget is there, and i don't want to avoid this widget

Аватар
Отменить
Лучший ответ

Hi Prajith,

<field name="start_date" string="Date" widget="date"/>

Hope it Helps,

Kiran K

Аватар
Отменить

It seems like he needs the hours and minutes, just want to remove the seconds.

Related Posts Ответы Просмотры Активность
0
июн. 21
2923
1
сент. 24
2224
1
мая 23
2874
2
дек. 23
12691
3
июл. 22
23042