[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
This commit is contained in:
jguenat
2022-10-29 13:50:39 +02:00
committed by jguenat
parent 5cb4d75892
commit 3056645025

View File

@@ -58,7 +58,7 @@ odoo.define("web_timeline.TimelineController", function (require) {
let fields = this.renderer.fieldNames; let fields = this.renderer.fieldNames;
fields = _.uniq(fields.concat(n_group_bys)); fields = _.uniq(fields.concat(n_group_bys));
return $.when( $.when(
res, res,
this._rpc({ this._rpc({
model: this.model.modelName, model: this.model.modelName,
@@ -77,6 +77,7 @@ odoo.define("web_timeline.TimelineController", function (require) {
) )
) )
); );
return res;
}, },
/** /**