From 43f26f2c659f30041465b102bca219d4a42d4fb9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 30 Jun 2021 01:07:57 +1000 Subject: [PATCH] Allow custom labels --- InvenTree/templates/js/forms.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/templates/js/forms.js b/InvenTree/templates/js/forms.js index fec168e923..54f0ae2f16 100644 --- a/InvenTree/templates/js/forms.js +++ b/InvenTree/templates/js/forms.js @@ -291,6 +291,11 @@ function constructFormBody(fields, options) { fields[field].help_text = field_options.help_text; } + // Custom label + if (field_options.label) { + fields[field].label = field_options.label; + } + // Field prefix if (field_options.prefix) { fields[field].prefix = field_options.prefix;