mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
hide purchase buttopn if special button
This commit is contained in:
parent
b38b540616
commit
924e46a0e3
@ -18,7 +18,7 @@
|
||||
{% url 'admin:company_company_change' company.pk as url %}
|
||||
{% include "admin_button.html" with url=url %}
|
||||
{% endif %}
|
||||
{% if company.is_supplier and roles.purchase_order.add %}
|
||||
{% if company.is_supplier and roles.purchase_order.add and not company.is_deleted %}
|
||||
<button type='button' class='btn btn-outline-primary' id='company-order-2' title='{% trans "Create Purchase Order" %}'>
|
||||
<span class='fas fa-shopping-cart'/>
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user