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
此問題已被標幟
2019
瀏覽次數
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
0
10月 24
|
1822 | ||
|
0
8月 24
|
1623 | ||
|
0
1月 24
|
2105 | ||
|
1
11月 23
|
1828 | ||
|
0
6月 23
|
2195 |
first check l.resign_date has any value or not.
Odoo QWEB Reporting Tips: https://learnopenerp.tumblr.com/