Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2499 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 21
2971
1
ก.ย. 24
2257
1
พ.ค. 23
2904
2
ธ.ค. 23
12724
3
ก.ค. 22
23100