Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1845 Lượt xem

Each employee has a working calendar that specifies the number of hours they should work on a specific weekday.
I want to compute what amount a specific employee should work in a month (year, month) based on their calendar and that month's holidays.
does this functionality exist in Odoo? if yes can you guide me to the function?
Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Arian 

You can use this function for each employee 

work_data = employee_id._get_work_days_data(
day_from,
day_to,
calendar=employee_id.resource_calendar_id,
compute_leaves=False,
)

where employee_id = id of the employee, In the day_from to day_to pass the interval of dates (like month,year,quarter) 



Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 24
2818
0
thg 5 23
2360
1
thg 7 19
3722
1
thg 9 23
4648
1
thg 7 23
2887