تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2026 أدوات العرض

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

الصورة الرمزية
إهمال

first check l.resign_date has any value or not.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 24
1825
0
أغسطس 24
1626
0
يناير 24
2107
1
نوفمبر 23
1831
0
يونيو 23
2199