Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2506 Visninger

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
Kassér
Bedste svar

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Kassér

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

Related Posts Besvarelser Visninger Aktivitet
0
jun. 21
2973
1
sep. 24
2260
1
maj 23
2906
2
dec. 23
12732
3
jul. 22
23107