Skip to content
Snippets Groups Projects
Commit 0379c51b authored by Luis's avatar Luis Committed by Nicolas Martinelli
Browse files

[FIX] web: refresh calendar if error


If an error is raised when saving a calendar event, the transaction is
correctly rolled back. However, the view is not refreshed and the
incorrect information is displayed.

We simply reload in all cases.

opw-2002186

closes odoo/odoo#33028

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 042966cc
Branches
Tags
No related merge requests found
......@@ -103,7 +103,7 @@ var CalendarController = AbstractController.extend({
* @returns {Deferred}
*/
_updateRecord: function (record) {
return this.model.updateRecord(record).then(this.reload.bind(this));
return this.model.updateRecord(record).always(this.reload.bind(this));
},
//--------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment