Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2030 Weergaven

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'">

Avatar
Annuleer

first check l.resign_date has any value or not.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 24
1831
0
aug. 24
1631
0
jan. 24
2121
1
nov. 23
1836
0
jun. 23
2210