Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2509 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Prajith,

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

Hope it Helps,

Kiran K

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
0
cze 21
2975
1
wrz 24
2263
1
maj 23
2907
2
gru 23
12735
3
lip 22
23109