addons/hr/model/hr_employee.base.py
Code:
resign_date = fields.Date(string="Resign Date", default="9000-12-31")
addons/hr/report/hr_employee_report.xml
PS:hr_employee_report.xml(Customize Report)
Code:
<td>
<t t-if="l.resign_date != datetime.datetime.strptime('9000-12-31','%Y-%m-%d')">
<span t-field="l.resign_date"/>
</t>
</td>
But in the printed report the date of '9000-12-31' still display
Even I tried the below code,still got the same result.What is the issue of the code?
<t t-if="l.resign_date != 9000-12-31">
<t t-if="l.resign_date != '9000-12-31'">
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ờ
2013
Lượt xem
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 | |
---|---|---|---|---|
|
0
thg 10 24
|
1814 | ||
|
0
thg 8 24
|
1620 | ||
|
0
thg 1 24
|
2105 | ||
|
1
thg 11 23
|
1825 | ||
|
0
thg 6 23
|
2186 |
first check l.resign_date has any value or not.
Odoo QWEB Reporting Tips: https://learnopenerp.tumblr.com/