Skip to Content
Menu
This question has been flagged
1 Odpoveď
2512 Zobrazenia

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

Avatar
Zrušiť
Best Answer

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
0
jún 21
2976
1
sep 24
2267
1
máj 23
2913
2
dec 23
12738
3
júl 22
23116