hide purchase buttopn if special button

This commit is contained in:
Matthias 2022-03-30 01:32:09 +02:00
parent b38b540616
commit 924e46a0e3
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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>