From 924e46a0e357abb5444732abf352e580447676ae Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 30 Mar 2022 01:32:09 +0200 Subject: [PATCH] hide purchase buttopn if special button --- InvenTree/company/templates/company/company_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index 6bf4c929b3..4adf4adb3b 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -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 %}