diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 3524bc5c40..51866732ba 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -300,6 +300,20 @@ function loadBomTable(table, options) { return renderLink(text, url); } }); + + cols.push({ + field: 'substitutes', + title: '{% trans "Substitutes" %}', + searchable: false, + sortable: true, + formatter: function(value, row) { + if (row.substitutes) { + return row.substitutes.length; + } else { + return '-'; + } + } + }); if (show_pricing) { cols.push({