Daily updates from Odoo
Wednesday, April 3, 2024
1 change · master
Features or functions removed from Odoo
Planning reports no longer show the working days count because it could be misleading when shifts overlap or when employees have flexible schedules. This prevents business users from relying on an inaccurate metric in planning, leave, timesheet forecasting, and sales planning reports.
Original PR description
Before this commit, the field 'working_days_count' was utilized in reports related to scheduling. However, this field did not accurately represent the number of working days for a resource. For instance, if a resource has multiple non-overlapping shifts in a week, the calculation is accurate. But, as soon as shifts overlap, the value no longer reflects reality. Why? Because the number of working days is calculated for each time slot based on the daily hours in the calendar, independently of other shifts. This means, for a 40-hour week calendar with 8-hour days, if there are two shifts from Monday to Friday, each with 40 allocated hours, the working_days_count equals 10, which is incorrect. It also doesn't work for employees with flexible hours due to the absence of a standard calendar. This commit removes the field as there is no viable solution to resolve these issues. taskid:3186627