コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2491 ビュー

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
2969
1
9月 24
2257
1
5月 23
2902
2
12月 23
12723
3
7月 22
23095