diff --git a/InvenTree/company/templates/company/purchase_orders.html b/InvenTree/company/templates/company/purchase_orders.html index eac4066f2d..aa30dcd4d9 100644 --- a/InvenTree/company/templates/company/purchase_orders.html +++ b/InvenTree/company/templates/company/purchase_orders.html @@ -27,7 +27,10 @@ {{ block.super }} loadPurchaseOrderTable("#purchase-order-table", { - url: "{% url 'api-po-list' %}?supplier={{ company.id }}", + url: "{% url 'api-po-list' %}", + params: { + supplier: company.id, + } }); diff --git a/InvenTree/company/templates/company/sales_orders.html b/InvenTree/company/templates/company/sales_orders.html index 7d5c7684bc..b19ba563b2 100644 --- a/InvenTree/company/templates/company/sales_orders.html +++ b/InvenTree/company/templates/company/sales_orders.html @@ -27,7 +27,10 @@ {{ block.super }} loadSalesOrderTable("#sales-order-table", { - url: "{% url 'api-so-list' %}?customer={{ company.id }}", + url: "{% url 'api-so-list' %}", + params: { + customer: {{ company.id }}, + } }); diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index 54d57d2d8c..5e77c01181 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -4,17 +4,17 @@ {% load i18n %} {% block page_title %} -InvenTree | Purchase Orders +InvenTree | {% trans "Purchase Orders" %} {% endblock %} {% block content %} -