diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index d14cfbdfd5..e560ebe03c 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -37,13 +37,17 @@
{% endif %}
-{% if barcodes %}
+{% if barcodes or labels_enabled %}
{% endif %}
@@ -424,9 +428,11 @@
);
});
+ {% if labels_enabled %}
$('#print-label').click(function() {
printPartLabels([{{ part.pk }}]);
});
+ {% endif %}
function adjustPartStock(action) {
inventreeGet(
diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html
index 7dc06664e1..8f62f2c852 100644
--- a/InvenTree/stock/templates/stock/item_base.html
+++ b/InvenTree/stock/templates/stock/item_base.html
@@ -49,15 +49,20 @@
{% endif %}
+{% if test_report_enabled or labels_enabled %}
+{% endif %}
+
{% if user_owns_item %}
{% if roles.stock.change and not item.is_building %}
diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html
index 45dcc0ba59..61320a2676 100644
--- a/InvenTree/stock/templates/stock/location.html
+++ b/InvenTree/stock/templates/stock/location.html
@@ -34,7 +34,9 @@
@@ -181,6 +183,7 @@
@@ -222,6 +226,15 @@
]
);
+ {% if labels_enabled %}
+ $('#print-label').click(function() {
+
+ var locs = [{{ location.pk }}];
+
+ printStockLocationLabels(locs);
+
+ });
+
$('#multi-location-print-label').click(function() {
var selections = $('#sublocation-table').bootstrapTable('getSelections');
@@ -234,6 +247,7 @@
printStockLocationLabels(locations);
});
+ {% endif %}
{% if location %}
$("#barcode-check-in").click(function() {
@@ -298,14 +312,6 @@
adjustLocationStock('move');
});
- $('#print-label').click(function() {
-
- var locs = [{{ location.pk }}];
-
- printStockLocationLabels(locs);
-
- });
-
{% endif %}
$('#show-qr-code').click(function() {
diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html
index f916344bf9..3791d5f059 100644
--- a/InvenTree/templates/base.html
+++ b/InvenTree/templates/base.html
@@ -6,6 +6,7 @@
{% settings_value 'REPORT_ENABLE_TEST_REPORT' as test_report_enabled %}
{% settings_value "REPORT_ENABLE" as report_enabled %}
{% settings_value "SERVER_RESTART_REQUIRED" as server_restart_required %}
+{% settings_value "LABEL_ENABLE" with user=user as labels_enabled %}
{% inventree_demo_mode as demo_mode %}