[IMP] web_timeline: Templates implementation like kanban

[IMP] web_timeline: Templates implementation like kanban

[ADD] Check if template exists

Update README.rst
This commit is contained in:
tarteo
2018-07-17 15:54:40 +02:00
parent f0504cc235
commit 9ae0096ded
4 changed files with 50 additions and 4 deletions

View File

@@ -68,6 +68,17 @@ odoo.define('web_timeline.TimelineView', function (require) {
fieldNames.push(fieldName);
}
});
var archFieldNames = _.map(_.filter(this.arch.children, function(item) {
return item.tag === 'field';
}), function(item) {
return item.attrs.name;
});
fieldNames = _.union(
fieldNames,
archFieldNames
);
this.parse_colors();
for (var i=0; i<this.colors.length; i++) {
fieldNames.push(this.colors[i].field);