2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

Optionally include javascript code based on barcode feature

This commit is contained in:
Oliver Walters
2021-01-28 21:51:34 +11:00
parent 4641123cd8
commit 5e5bced0c7
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,8 @@
{% load i18n %}
{% load inventree_extras %}
{% settings_value 'BARCODE_ENABLE' as barcodes %}
{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %}
{% if owner_control.value == "True" %}
{% authorized_owners location.owner as owners %}
@ -19,7 +21,6 @@
<span class='fas fa-plus-circle'></span>
</button>
{% endif %}
{% settings_value 'BARCODE_ENABLE' as barcodes %}
{% if barcodes %}
<!-- Barcode actions menu -->
<div class='btn-group'>