From 3f172cb065f61e196343798f3c22b107a0902b5e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 5 Dec 2019 09:12:37 +1100 Subject: [PATCH] Add 'new location' button when receiving parts by individual line --- .../order/templates/order/purchase_order_detail.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index d0bd0e3f53..0ee447ef0e 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -202,7 +202,15 @@ $("#po-lines-table").on('click', ".line-receive", function() { reload: true, data: { line: button.attr('pk') - } + }, + secondary: [ + { + field: 'location', + label: 'New Location', + title: 'Create new stock location', + url: "{% url 'stock-location-create' %}", + }, + ] }); });