Skip to Content
Menú
This question has been flagged
1 Respondre
2367 Vistes

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
Descartar
Best Answer

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Descartar

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

Related Posts Respostes Vistes Activitat
0
de juny 21
2822
1
de set. 24
2095
1
de maig 23
2728
2
de des. 23
12526
3
de jul. 22
22832