summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-09-10 18:10:26 +0200
committerNicolas Lempereur <nle@odoo.com>2018-09-11 16:29:05 +0200
commitdc9b3df431c0c971b73870bcb9eaf90c07a84da8 (patch)
tree2ff1b8f3178920b89cc024ba590cdff35b4574aa /addons/web/static/tests/fields/basic_fields_tests.js
parent07763068137282f47d822b797a7eccb958e1d682 (diff)
[FIX] calendar: keep recurring after edited one
Since 76b7242 if we have a recurring event with 3 occurences: [4th 4:00-4th 5:00] [14th 4:00-14th 5:00] [24th 4:00-24th 4:00] And we detach the first one to modify it, then when getting the info of reccurring events not detached the system get: - starts: [14th 4:00] [24th 4:00] - stops: [4th 5:00] [14th 5:00] [24th 5:00] And wrongly apply the current filtering over: [14th 4:00-4th 5:00] [24th 4:00-14th 5:00] So the issue hides recurrences of event wrongly if: - they have not been detached - they don't have a duration of 0 - one or several previous events have been detached - the stop date of the nth previous event occurrence (nth equaling number of detached previous events) is not in the current filtering. With this change, the stops are also filtered based on start of occurrence + duration. Without the change, the added test fails with: False != '155-20120301120100' : Last event should be found searching it by date range note: for 10.0 up to not including 11.0 which is solved with #26901 opw-1866151 closes #26887
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions