콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2599 화면

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
3072
1
9월 24
2372
1
5월 23
3002
2
12월 23
12901
3
7월 22
23301