summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src
diff options
context:
space:
mode:
authorДмитро Катюха <dmytro.katyukha@maao.com.ua>2017-11-28 10:45:39 +0000
committerYannick Tivisse <yti@odoo.com>2018-11-21 15:42:48 +0000
commitf68c5261f9209aba7d8f19a33f1892d863c3c448 (patch)
tree33d09923a18444803dd60fe03438312e7ddbfc00 /addons/web_editor/static/lib/summernote/src
parent07d450575982fbe946d55ec1e054d50a28108d4c (diff)
[FIX] resource: Fix work/leaves hours count methods
Purpose ======= Buggy example: I have a 35h working schedule. I work every week day: - From 8h to 12h - From 12h to 16h Let's say that I want to retrieve the working hours from Wednesday 14h03 to Thursday 11h03. The working hours are: - From 14h03 to 16h --> 1h57 - From 8h to 11h03 --> 3h03 ---------------------------- TOTAL 5h Currently the result will be 1.95, i.e. 1h57 because the second day is not taken into account as start time > end time, and thus rrule doesn't manage this correctly and returns only the datetime corresponding to the first day. Specification ============= Force the until parameter of rrule to be set at the end of the day, do avoid skipping the second day. Do this in the methods that compute the work hours and the leave hours. Add a test to ensure the robustness of the fix. Closes #21297 closes odoo/odoo#28920
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src')
0 files changed, 0 insertions, 0 deletions