mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_timeline: New dependency_arrow attribute
Update README.rst [FIX] Remove console.log [ADD] Make timeline.fit optional [FIX] Use stringified points [IMP] Reversed the arrow head and fixed lint issues [IMP] Use options parameter for line color and width [FIX] Version number [IMP] Minor improvements
This commit is contained in:
@@ -84,11 +84,16 @@ odoo.define('web_timeline.TimelineView', function (require) {
|
||||
fieldNames.push(this.colors[i].field);
|
||||
}
|
||||
|
||||
if (attrs.dependency_arrow) {
|
||||
fieldNames.push(attrs.dependency_arrow);
|
||||
}
|
||||
|
||||
this.permissions = {};
|
||||
this.grouped_by = false;
|
||||
this.date_start = attrs.date_start;
|
||||
this.date_stop = attrs.date_stop;
|
||||
this.date_delay = attrs.date_delay;
|
||||
this.dependency_arrow = attrs.dependency_arrow;
|
||||
|
||||
this.no_period = this.date_start === this.date_stop;
|
||||
this.zoomKey = attrs.zoomKey || '';
|
||||
@@ -125,6 +130,7 @@ odoo.define('web_timeline.TimelineView', function (require) {
|
||||
this.rendererParams.colors = this.colors;
|
||||
this.rendererParams.fieldNames = fieldNames;
|
||||
this.rendererParams.view = this;
|
||||
this.rendererParams.dependency_arrow = this.dependency_arrow;
|
||||
this.loadParams.modelName = this.modelName;
|
||||
this.loadParams.fieldNames = fieldNames;
|
||||
this.controllerParams.open_popup_action = this.open_popup_action;
|
||||
|
||||
Reference in New Issue
Block a user