From 0aeb7ddbdf927ac95244cf010517db0a0c718191 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 20 Aug 2020 08:57:11 +1000 Subject: [PATCH] Allow column show/hide on BOM table --- InvenTree/templates/js/bom.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/bom.html b/InvenTree/templates/js/bom.html index 7692f28ba9..122b1b7ba8 100644 --- a/InvenTree/templates/js/bom.html +++ b/InvenTree/templates/js/bom.html @@ -312,13 +312,14 @@ function loadBomTable(table, options) { ) } - table.bootstrapTable({ + table.inventreeTable({ treeEnable: true, rootParentId: options.parent_id, idField: 'pk', uniqueId: 'pk', parentIdField: 'parentId', treeShowField: 'sub_part', + showColumns: true, sortable: true, search: true, rowStyle: function(row, index) {