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

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
2981
1
вер. 24
2270
1
трав. 23
2919
2
груд. 23
12748
3
лип. 22
23127