Merge pull request #2010 from SchrodingersGat/sales-order-tab-fix

Hide "Sales Orders" tab if part is not salable
This commit is contained in:
Oliver 2021-08-24 12:03:09 +10:00 committed by GitHub
commit 56f27aae23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@
</li> </li>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if roles.sales_order.view and enable_sell and enable_so %} {% if part.salable and roles.sales_order.view and enable_sell and enable_so %}
<li class='list-group-item' title='{% trans "Sales Orders" %}'> <li class='list-group-item' title='{% trans "Sales Orders" %}'>
<a href='#' id='select-sales-orders' class='nav-toggle'> <a href='#' id='select-sales-orders' class='nav-toggle'>
<span class='menu-tab-icon fas fa-truck sidebar-icon'></span> <span class='menu-tab-icon fas fa-truck sidebar-icon'></span>