تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2510 أدوات العرض

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
يونيو 21
2975
1
سبتمبر 24
2263
1
مايو 23
2907
2
ديسمبر 23
12735
3
يوليو 22
23109