Hide "Sales Orders" tab if part is not salable

This commit is contained in:
Oliver 2021-08-24 11:48:42 +10:00
parent 5349addc06
commit 7646535aaf

View File

@ -87,7 +87,7 @@
</li>
{% 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" %}'>
<a href='#' id='select-sales-orders' class='nav-toggle'>
<span class='menu-tab-icon fas fa-truck sidebar-icon'></span>