From 9131edc43d3a0e8970e65f449c08d28fe6587aca Mon Sep 17 00:00:00 2001 From: eeintech Date: Wed, 21 Oct 2020 09:34:49 -0500 Subject: [PATCH] Company index: swapped 'title' for 'pagetype' for adding company button --- InvenTree/company/templates/company/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/company/templates/company/index.html b/InvenTree/company/templates/company/index.html index c8efbe804b..f110950c0b 100644 --- a/InvenTree/company/templates/company/index.html +++ b/InvenTree/company/templates/company/index.html @@ -12,7 +12,7 @@ InvenTree | {% trans "Supplier List" %}

{{ title }}


-{% if title == 'Manufacturers' and roles.purchase_order.add or title == 'Suppliers' and roles.purchase_order.add or title == 'Customers' and roles.sales_order.add %} +{% if pagetype == 'manufacturers' and roles.purchase_order.add or pagetype == 'suppliers' and roles.purchase_order.add or pagetype == 'customers' and roles.sales_order.add %}