From e29c979629158f374a6c97cb15478e43fb1b0711 Mon Sep 17 00:00:00 2001 From: "Yadier A. De Quesada" Date: Fri, 2 Jun 2023 16:57:52 -0400 Subject: [PATCH] [FIX] web_timeline: css and styles not charged when rendering timeline On library version update a new feature was added at Timeline creation level to allow modifying the xss. By keeping it active the css classes are not showed As the view is on backend, has no sense to keep it active. So we deactivate the feature to allow show the timeline correctly. TT43238 --- web_timeline/__manifest__.py | 2 +- web_timeline/static/src/js/timeline_renderer.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web_timeline/__manifest__.py b/web_timeline/__manifest__.py index 84c79ddae..0ee7cbc87 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": "16.0.1.0.0", + "version": "16.0.1.0.1", "development_status": "Production/Stable", "author": "ACSONE SA/NV, " "Tecnativa, " diff --git a/web_timeline/static/src/js/timeline_renderer.js b/web_timeline/static/src/js/timeline_renderer.js index a49531d45..590a8449c 100644 --- a/web_timeline/static/src/js/timeline_renderer.js +++ b/web_timeline/static/src/js/timeline_renderer.js @@ -227,7 +227,11 @@ odoo.define("web_timeline.TimelineRenderer", function (require) { this.qweb.add_template(tmpl); } - this.timeline = new vis.Timeline(this.$timeline.get(0)); + this.timeline = new vis.Timeline( + this.$timeline.get(0), + {}, + {xss: {disabled: true}} + ); this.timeline.setOptions(this.options); if (this.mode && this["on_scale_" + this.mode + "_clicked"]) { this["on_scale_" + this.mode + "_clicked"]();