From 52ba2201b2d410047678fb9292c715c76fe1392b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 8 Aug 2021 00:49:16 +1000 Subject: [PATCH] secondary for creating sales order customers --- 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 86035c5c47..8e9809c2c0 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -13,6 +13,16 @@ function createSalesOrder(options={}) { }, customer: { value: options.customer, + secondary: { + title: '{% trans "Add Customer" %}', + fields: function(data) { + var fields = companyFormFields(); + + fields.is_customer.value = true; + + return fields; + } + } }, customer_reference: {}, description: {},