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:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
2008
มุมมอง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
0
ต.ค. 24
|
1812 | ||
|
0
ส.ค. 24
|
1620 | ||
|
0
ม.ค. 24
|
2104 | ||
|
1
พ.ย. 23
|
1824 | ||
|
0
มิ.ย. 23
|
2184 |
first check l.resign_date has any value or not.
Odoo QWEB Reporting Tips: https://learnopenerp.tumblr.com/