diff --git a/web_timeline/static/src/js/timeline_renderer.js b/web_timeline/static/src/js/timeline_renderer.js index 3c52359a051..1f27cdec549 100644 --- a/web_timeline/static/src/js/timeline_renderer.js +++ b/web_timeline/static/src/js/timeline_renderer.js @@ -392,8 +392,7 @@ odoo.define("web_timeline.TimelineRenderer", function (require) { }); const fieldType = fields[grouped_field].type; const relation = fields[grouped_field].relation; - if ((fieldType === "many2one" || fieldType === "many2many") && - relation ) { + if ((fieldType === "many2one" || fieldType === "many2many") && relation) { fieldsRelation = await this._rpc({ model: relation, method: "fields_get", @@ -423,7 +422,6 @@ odoo.define("web_timeline.TimelineRenderer", function (require) { continue; } - if (fieldType === "many2one") { if (hasSequence) { const group_data = await this._rpc({ @@ -500,9 +498,9 @@ odoo.define("web_timeline.TimelineRenderer", function (require) { } else { date_stop = this.date_stop ? time.auto_str_to_date( - evt[this.date_stop].split(" ")[0], - "stop" - ) + evt[this.date_stop].split(" ")[0], + "stop" + ) : null; } } else {