[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
committed by CarlosRoca13
parent e910bc0c64
commit 10a9f0318a
5 changed files with 58 additions and 5 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);