Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2116 Vistas

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
Mejor respuesta

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.

Publicaciones relacionadas Respuestas Vistas Actividad
0
jun 21
2386
1
sept 24
1647
1
may 23
2349
2
dic 23
11996
3
jul 22
22200