From ad27d912e1a12ca8a323f12ff1744caaea4bac98 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 28 Jun 2019 20:48:23 +1000 Subject: [PATCH] Add some optional upload fields (These will come in handy later) --- InvenTree/part/bom.py | 6 ++++++ InvenTree/part/templates/part/bom_upload/select_fields.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index b0ba1a5dae..3b6a7fe928 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -51,8 +51,14 @@ class BomUploadManager: 'Quantity' ] + # Fields which would be helpful but are not required OPTIONAL_HEADERS = [ 'Reference', + 'Description', + 'Category', + 'Supplier', + 'Manufacturer', + 'MPN', 'Overage', 'Notes' ] diff --git a/InvenTree/part/templates/part/bom_upload/select_fields.html b/InvenTree/part/templates/part/bom_upload/select_fields.html index 1175ed353b..f38a9dae34 100644 --- a/InvenTree/part/templates/part/bom_upload/select_fields.html +++ b/InvenTree/part/templates/part/bom_upload/select_fields.html @@ -34,7 +34,7 @@ {{ col.name }}