mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	disable links in navbar in company views
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user