From 30566450253d101dea4756ee6340bfc90c0efd32 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/static/src/js/timeline_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }, /**