summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2019-09-23 10:12:54 +0000
committerfw-bot <otis@odoo.com>2019-09-24 08:17:12 +0000
commitfba64a71535ba5e2878970379b55f1ca6cc0028e (patch)
treebc132e44a89daf6703cc8261d7eee6f0ff8d1122 /addons/web/static/src/js/views/basic/basic_controller.js
parent673d3b871d99fed549345744bf22f2b9d50d0576 (diff)
[FIX] google_calendar: Slow calendar sync
Create a lot of event (i.e. 300 via recursive events) with attedees. Sync. Cancel all the events. Sync again. This and all subsequent synchronization will take a lot of time to complete. The first time is normal because odoo will cross-check every deleted event for the "syncing" user with google to ensure that there is match between OE and GC. This matching will sistematically fail because the json module cannot serialize a datetime object, so it will be retriggered again and again stalling the synchronization for minutes. Formatting the datetime before calling the dump fixes. Moreover the api usage was wrong as 'originalStartTime' is not a date but a complex object holding the date. Note: this could have been avoided via logging but error detection was suppressed. opw-2052450 closes odoo/odoo#37335 X-original-commit: 951808b2434717d38ab9d562404eb74d8bd40634 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions