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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
30799
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 5 25
|
570 | ||
|
1
thg 4 25
|
1688 | ||
|
1
thg 2 25
|
782 | ||
|
0
thg 4 25
|
863 | ||
|
0
thg 10 24
|
682 |