From e3efd1218441aec6a2901c67e0d3d58a79a13e68 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 8 Aug 2021 00:50:59 +1000 Subject: [PATCH] secondary for purcahse order --- InvenTree/templates/js/translated/order.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index 8e9809c2c0..8a8f45103c 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -54,6 +54,16 @@ function createPurchaseOrder(options={}) { }, supplier: { value: options.supplier, + secondary: { + title: '{% trans "Add Supplier" %}', + fields: function(data) { + var fields = companyFormFields(); + + fields.is_supplier.value = true; + + return fields; + } + } }, supplier_reference: {}, description: {},