From 61575741f94301e8ac20b65699f195e26fde8b09 Mon Sep 17 00:00:00 2001 From: jguenat Date: Sat, 29 Oct 2022 13:50:39 +0200 Subject: [PATCH] [FIX] web_timeline: updateProm.finally is not a function Following odoo#102621 an UncaughtPromiseError > TypeError occured each time an update was triggered in timeline view Fixed by returning super --- web_timeline/__manifest__.py | 2 +- web_timeline/static/src/js/timeline_controller.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web_timeline/__manifest__.py b/web_timeline/__manifest__.py index 393e161ed..b87b79fa1 100644 --- a/web_timeline/__manifest__.py +++ b/web_timeline/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Web timeline", "summary": "Interactive visualization chart to show events in time", - "version": "15.0.1.0.0", + "version": "15.0.1.0.1", "development_status": "Production/Stable", "author": "ACSONE SA/NV, " "Tecnativa, " diff --git a/web_timeline/static/src/js/timeline_controller.js b/web_timeline/static/src/js/timeline_controller.js index b147aff7a..bd814f0aa 100644 --- a/web_timeline/static/src/js/timeline_controller.js +++ b/web_timeline/static/src/js/timeline_controller.js @@ -58,7 +58,7 @@ odoo.define("web_timeline.TimelineController", function (require) { let fields = this.renderer.fieldNames; fields = _.uniq(fields.concat(n_group_bys)); - return $.when( + $.when( res, this._rpc({ model: this.model.modelName, @@ -77,6 +77,7 @@ odoo.define("web_timeline.TimelineController", function (require) { ) ) ); + return res; }, /**