Skip to Content
Menu
This question has been flagged
1 Atsakyti
2505 Rodiniai

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

Portretas
Atmesti
Best Answer

Hi Prajith,

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

Hope it Helps,

Kiran K

Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
0
birž. 21
2972
1
rugs. 24
2259
1
geg. 23
2905
2
gruod. 23
12725
3
liep. 22
23104