mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2010 from SchrodingersGat/sales-order-tab-fix
Hide "Sales Orders" tab if part is not salable
This commit is contained in:
commit
56f27aae23
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user