Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2460 Tampilan

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
Buang
Jawaban Terbai

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Buang

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

Post Terkait Replies Tampilan Aktivitas
0
Jun 21
2923
1
Sep 24
2224
1
Mei 23
2872
2
Des 23
12691
3
Jul 22
23042