From 0f60482e098a0d9cb522c4de5f452554dfd9a6fb Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 18 Feb 2021 14:59:13 +1100 Subject: [PATCH] Add secondary dialog for creating new supplier --- InvenTree/order/templates/order/purchase_orders.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index 52314df833..262f083074 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -158,6 +158,14 @@ $("#po-create").click(function() { launchModalForm("{% url 'po-create' %}", { follow: true, + secondary: [ + { + field: 'supplier', + label: '{% trans "New Supplier" %}', + title: '{% trans "Create new Supplier" %}', + url: '{% url "supplier-create" %}', + } + ] } ); });