Files
gzth/源码/源码.py
T
2024-11-22 21:02:55 +08:00

8 lines
286 B
Python

# odoo\addons\hr_attendance\models\hr_employee.py
# hours = sum(
# att.worked_hours or 0
# for att in employee.attendance_ids.filtered(
# lambda att: att.check_in >= start_naive and att.check_out and att.check_out <= end_naive
# )
# )
hours = 0 # 上月工作小时