Skip to Content
मेन्यू
This question has been flagged
1 Reply
2523 Views

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

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Discard

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

Related Posts Replies Views Activity
0
जून 21
2984
1
सित॰ 24
2284
1
मई 23
2931
2
दिस॰ 23
12765
3
जुल॰ 22
23147