Merge PR #2430 into 15.0

Signed-off-by pedrobaeza
pull/2304/head
OCA-git-bot 2023-03-06 17:32:41 +00:00
commit e8d9b72fa8
1 changed files with 5 additions and 1 deletions

View File

@ -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"]();