跳至內容
選單
此問題已被標幟
1 回覆
2489 瀏覽次數

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

頭像
捨棄
最佳答案

Hi Prajith,

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

Hope it Helps,

Kiran K

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
0
6月 21
2968
1
9月 24
2256
1
5月 23
2901
2
12月 23
12719
3
7月 22
23093