mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user