Skip to content
Snippets Groups Projects
Commit 36e20a34 authored by Philippe Wauthy's avatar Philippe Wauthy
Browse files

[FIX] resource: timezone end before assigning search_range


The end datetime is not timezoned in _adjust_to_calendar before defining the search_range and using the _get_closest_work_time method.
Since _get_closest_work_time will timezone the timestamp received to start searching, the search interval needs to refer to the same end timestamp to avoid erratic behaviors.

Task-2628876

closes odoo/odoo#76374

Related: odoo/enterprise#20783
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 591e424f
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment