添加功能

This commit is contained in:
李鹏宇
2026-02-25 02:15:48 +08:00
parent 8fce057d08
commit 741d6ba46d
2 changed files with 2 additions and 1 deletions
@@ -721,6 +721,7 @@ class YuthonVacationReports(models.Model):
regular_days = 0 # 转正天数
actual_attendance = 0 # 实到天数 = 应到天数 - 请假总天数 - 异常天数
leave_total_days = 0 # 累计请假天数
test_days = 0
is_retired = rec.employee_id.user_state in ('leave', 'withdraw')
if rec.employee_id and rec.vacation_date and not is_retired:
year = rec.vacation_date.year
@@ -629,7 +629,7 @@
<filter string="离职" name="to_do" domain="[('user_state', '=', 'leave')]"/>
<filter string="退休" name="done" domain="[('user_state', '=', 'withdraw')]"/>
<filter string="即将到期" name="end"
domain="[('end_comparison', 'in', ['red', 'yellow', 'blue'])]"/>
domain="[('end_comparison', 'in', ['red', 'yellow', 'blue'])]" shownumber="1"/>
</quick_filter>
</header_search>
</xpath>