跳至内容
菜单
此问题已终结
1 回复
2384 查看

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
2835
1
9月 24
2121
1
5月 23
2758
2
12月 23
12543
3
7月 22
22848