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

No matter the date is '2019-12-31' or not,still display in the QWEB report.What is the correct format of date in QWEB report?
*.py
resign_date = fields.Date(string="Resign Date", default="2019-12-31")

report/*.xml
<t t-if="l.resign_date != '2019-12-31'">
    <span t-field="l.resign_date"/>
</t>

아바타
취소
베스트 답변

Try this format 


<span t-field="l.resign_date" t-options='{"widget": "date","format": "dd-MM-yyyy"}'/>


아바타
취소
베스트 답변

<span t-field="l.resign_date" t-options='{"format": "MM/dd/yyyy"}'/>

아바타
취소
작성자

But the default date '2019-12-31' still display in the report

관련 게시물 답글 화면 활동
1
7월 25
2045
1
5월 25
2260
1
4월 25
2530
1
2월 25
1820
0
10월 24
1543