disable links in navbar in company views

This commit is contained in:
Matthias 2021-08-22 22:27:53 +02:00
parent d4efdf86e5
commit 3682eaac14
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -2,6 +2,10 @@
{% 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'>
@ -28,6 +32,7 @@
{% 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>
@ -35,8 +40,9 @@
</a>
</li>
{% endif %}
{% endif %}
{% if company.is_supplier %}
{% if company.is_supplier and enable_po %}
<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>
@ -45,7 +51,7 @@
</li>
{% endif %}
{% if company.is_customer %}
{% if company.is_customer and enable_so %}
<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>