From 73d5f62acd20dc2bda212e06ec84b774ced77707 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 1 Dec 2015 12:38:57 +0100 Subject: [PATCH] [IMP] web_calendar: refresh event after fail If an event is moved at another time, its appearance would only be refreshed if it was successful. But in this particular instance, the refresh may even be more useful when the change failed. part of #9837 second half of: opw-657863 --- addons/web_calendar/static/src/js/web_calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 63066f7a861..c054a0148b0 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -806,7 +806,7 @@ openerp.web_calendar = function(instance) { var index = this.dataset.get_id_index(id); if (index !== null) { event_id = this.dataset.ids[index]; - this.dataset.write(event_id, data, {}).done(function() { + this.dataset.write(event_id, data, {}).always(function() { if (is_virtual_id(event_id)) { // this is a virtual ID and so this will create a new event // with an unknown id for us.