From 697d4ac26ed7ba0e510548fbfcb2806221474bcc Mon Sep 17 00:00:00 2001 From: Invitu Date: Mon, 17 Dec 2018 23:10:48 -1000 Subject: [PATCH] [IMP] Add stack support --- web_timeline/__manifest__.py | 2 +- web_timeline/static/src/js/timeline_view.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web_timeline/__manifest__.py b/web_timeline/__manifest__.py index a376e093e..302c6d2b6 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": "12.0.1.0.0", + "version": "12.0.1.0.1", "development_status": "Production/Stable", 'author': 'ACSONE SA/NV, ' 'Tecnativa, ' diff --git a/web_timeline/static/src/js/timeline_view.js b/web_timeline/static/src/js/timeline_view.js index 995643245..d61afa3c0 100644 --- a/web_timeline/static/src/js/timeline_view.js +++ b/web_timeline/static/src/js/timeline_view.js @@ -111,12 +111,17 @@ odoo.define('web_timeline.TimelineView', function (require) { if (!isNullOrUndef(attrs.quick_create_instance)) { self.quick_create_instance = 'instance.' + attrs.quick_create_instance; } + this.stack = true; + if (!isNullOrUndef(attrs.stack) && !_.str.toBoolElse(attrs.stack, "true")) { + this.stack = false; + } this.options = { groupOrder: this.group_order, orientation: 'both', selectable: true, multiselect: true, showCurrentTime: true, + stack: this.stack, zoomKey: this.zoomKey }; if (isNullOrUndef(attrs.event_open_popup) || !_.str.toBoolElse(attrs.event_open_popup, true)) {