2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-04 12:40:57 +00:00
Removes global functions to enable / disable entire sections of functionality
This commit is contained in:
Oliver
2021-10-13 09:40:17 +11:00
parent 77324c496c
commit 4f985ae225
9 changed files with 10 additions and 95 deletions

View File

@ -2,10 +2,6 @@
{% load static %}
{% load inventree_extras %}
{% settings_value 'STOCK_FUNCTION_ENABLE' as enable_stock %}
{% settings_value 'SO_FUNCTION_ENABLE' as enable_so %}
{% settings_value 'PO_FUNCTION_ENABLE' as enable_po %}
<ul class='list-group'>
<li class='list-group-item'>
<a href='#' id='company-menu-toggle'>
@ -32,7 +28,6 @@
{% endif %}
{% if company.is_manufacturer or company.is_supplier %}
{% if enable_stock %}
<li class='list-group-item' title='{% trans "Stock Items" %}'>
<a href='#' id='select-company-stock' class='nav-toggle'>
<span class='fas fa-boxes sidebar-icon'></span>
@ -40,9 +35,8 @@
</a>
</li>
{% endif %}
{% endif %}
{% if company.is_supplier and enable_po %}
{% if company.is_supplier %}
<li class='list-group-item' title='{% trans "Purchase Orders" %}'>
<a href='#' id='select-purchase-orders' class='nav-toggle'>
<span class='fas fa-shopping-cart sidebar-icon'></span>
@ -51,7 +45,7 @@
</li>
{% endif %}
{% if company.is_customer and enable_so %}
{% if company.is_customer %}
<li class='list-group-item' title='{% trans "Sales Orders" %}'>
<a href='#' id='select-sales-orders' class='nav-toggle'>
<span class='fas fa-truck sidebar-icon'></span>