Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2500 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Prajith,

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

Hope it Helps,

Kiran K

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 21
2972
1
thg 9 24
2257
1
thg 5 23
2904
2
thg 12 23
12724
3
thg 7 22
23100