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>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
2
Replies
30960
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 25
|
591 | ||
|
1
Apr 25
|
1700 | ||
|
1
Feb 25
|
839 | ||
|
0
Apr 25
|
889 | ||
|
0
Oct 24
|
691 |