Skip to Content
मेन्यू
This question has been flagged
2 Replies
32507 Views

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>

Avatar
Discard
Best Answer

Try this format 


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


Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
1
जुल॰ 25
2075
1
मई 25
2306
1
अप्रैल 25
2558
1
फ़र॰ 25
1850
0
अक्तू॰ 24
1566