添加功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user