Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2508 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi Prajith,

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

Hope it Helps,

Kiran K

Avatar
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
0
čvn 21
2974
1
zář 24
2262
1
kvě 23
2907
2
pro 23
12735
3
čvc 22
23107