Add ability to include bom items inherited from parent parts in the API list

This commit is contained in:
Oliver Walters committed 2021-02-17 22:05:17 +11:00
1 parent 40d75090a7
commit 43eba3f7ec
4 files changed
+43 -1

No files matched your search

+12
View File
@@ -254,6 +254,18 @@ function loadBomTable(table, options) {
});
*/
cols.push({
field: 'optional',
title: '{% trans "Optional" %}',
searchable: false,
});
cols.push({
field: 'inherited',
title: '{% trans "Inherited" %}',
searchable: false,
});
cols.push(
{
'field': 'can_build',
+4
View File
@@ -44,6 +44,10 @@ function getAvailableTableFilters(tableKey) {
type: 'bool',
title: '{% trans "Validated" %}',
},
inherited: {
type: 'bool',
title: '{% trans "Inherited" %}',
}
};
}