You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] hr_calendar: pass resource objects instead of employees in _get_schedule
This commit aims to fix the issue where the _get_schedule method of the
hr.calendar model was receiving a list of employee ids instead of a list
of resource objects, leading to some test failures as '_is_flexible' method
was not accessible from the employee object that was initially passed.
Additionally, the _get_schedule method in res_partner was passing employee_id
instead of the employee's resource_id to fetch the calendar_intervals. This was
also fixed in this commit.
related ticket-id: 4492625
Enterprise: 79532
Part-of: odoo#198032
Related: odoo/enterprise#79532
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
0 commit comments