From 686a61fba9a8cc523aee6edd21d97a8491920e55 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 25 May 2019 00:36:02 +1000 Subject: [PATCH] Hide checkboxes when BOM is not being edited --- InvenTree/static/script/inventree/bom.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/InvenTree/static/script/inventree/bom.js b/InvenTree/static/script/inventree/bom.js index 8de9f5ce20..0f3134c193 100644 --- a/InvenTree/static/script/inventree/bom.js +++ b/InvenTree/static/script/inventree/bom.js @@ -32,13 +32,16 @@ function loadBomTable(table, options) { title: 'ID', visible: false, }, - { + ]; + + if (options.editable) { + cols.push({ checkbox: true, title: 'Select', searchable: false, sortable: false, - }, - ]; + }); + } // Part column cols.push(