-
- Downloads
[FIX] web: calendar's drag-and-dropped event has wrong end-date
Due to previous commit, in month view, the flag marking events as "all day" is no more present and so some logic is not applied anymore. This results into the wrong end-date. With this commit we avoid to change the end date of an event in FullCalendar. Note that it changes the behavior on drag-and-dropped event in month view: * Before both the last and this commit, an event if 1H will become an "all day" event when it's dropped into another cell. * After them, the time will be the same as the original event and only the date will change. Also, one test was already added in commit odoo/odoo@7af13089dffcd3c9d98716af4aa76b923825fdfc to check that, in month view, when we move a non-"all day" event to another day, it can't change into a all day event. This commit adds a second test to cover the case when the "all day" mapping is present. Task ID: 2183249
Showing
- addons/web/static/src/js/views/calendar/calendar_model.js 2 additions, 13 deletionsaddons/web/static/src/js/views/calendar/calendar_model.js
- addons/web/static/src/js/views/calendar/calendar_renderer.js 0 additions, 1 deletionaddons/web/static/src/js/views/calendar/calendar_renderer.js
- addons/web/static/tests/views/calendar_tests.js 61 additions, 0 deletionsaddons/web/static/tests/views/calendar_tests.js
Loading
Please register or sign in to comment