mirror of https://github.com/OCA/web.git
[IMP] Add stack support
parent
0f0aefd040
commit
6bcd74ba4a
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
'name': "Web timeline",
|
'name': "Web timeline",
|
||||||
'summary': "Interactive visualization chart to show events in time",
|
'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",
|
"development_status": "Production/Stable",
|
||||||
'author': 'ACSONE SA/NV, '
|
'author': 'ACSONE SA/NV, '
|
||||||
'Tecnativa, '
|
'Tecnativa, '
|
||||||
|
|
|
@ -111,12 +111,17 @@ odoo.define('web_timeline.TimelineView', function (require) {
|
||||||
if (!isNullOrUndef(attrs.quick_create_instance)) {
|
if (!isNullOrUndef(attrs.quick_create_instance)) {
|
||||||
self.quick_create_instance = 'instance.' + 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 = {
|
this.options = {
|
||||||
groupOrder: this.group_order,
|
groupOrder: this.group_order,
|
||||||
orientation: 'both',
|
orientation: 'both',
|
||||||
selectable: true,
|
selectable: true,
|
||||||
multiselect: true,
|
multiselect: true,
|
||||||
showCurrentTime: true,
|
showCurrentTime: true,
|
||||||
|
stack: this.stack,
|
||||||
zoomKey: this.zoomKey
|
zoomKey: this.zoomKey
|
||||||
};
|
};
|
||||||
if (isNullOrUndef(attrs.event_open_popup) || !_.str.toBoolElse(attrs.event_open_popup, true)) {
|
if (isNullOrUndef(attrs.event_open_popup) || !_.str.toBoolElse(attrs.event_open_popup, true)) {
|
||||||
|
|
Loading…
Reference in New Issue