diff --git a/InvenTree/company/templates/company/detail_purchase_orders.html b/InvenTree/company/templates/company/detail_purchase_orders.html new file mode 100644 index 0000000000..f7e3c6c5f9 --- /dev/null +++ b/InvenTree/company/templates/company/detail_purchase_orders.html @@ -0,0 +1,7 @@ +{% extends "company/company_base.html" %} +{% load static %} +{% block details %} + +{% include 'company/tabs.html' with tab='po' %} + +{% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/tabs.html b/InvenTree/company/templates/company/tabs.html index 8196e48132..e52f22fab2 100644 --- a/InvenTree/company/templates/company/tabs.html +++ b/InvenTree/company/templates/company/tabs.html @@ -10,7 +10,7 @@ Stock {{ company.stock_count }} - Purchase Orders {{ company.purchase_orders.count }} + Purchase Orders {{ company.purchase_orders.count }} {% endif %} {% if company.is_customer %} diff --git a/InvenTree/company/urls.py b/InvenTree/company/urls.py index 7f617baafd..de4a5e7c5f 100644 --- a/InvenTree/company/urls.py +++ b/InvenTree/company/urls.py @@ -17,6 +17,7 @@ company_detail_urls = [ url(r'parts/?', views.CompanyDetail.as_view(template_name='company/detail_part.html'), name='company-detail-parts'), url(r'stock/?', views.CompanyDetail.as_view(template_name='company/detail_stock.html'), name='company-detail-stock'), + url(r'purchase-orders/?', views.CompanyDetail.as_view(template_name='company/detail_purchase_orders.html'), name='company-detail-purchase-orders'), url(r'thumbnail/?', views.CompanyImage.as_view(), name='company-image'),