diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index fe973efaf0..b0ba1a5dae 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -46,14 +46,19 @@ class BomUploadManager: """ Class for managing an uploaded BOM file """ # Fields which are absolutely necessary for valid upload - HEADERS = [ + REQUIRED_HEADERS = [ 'Part', - 'Quantity', + 'Quantity' + ] + + OPTIONAL_HEADERS = [ 'Reference', 'Overage', 'Notes' ] + HEADERS = REQUIRED_HEADERS + OPTIONAL_HEADERS + def __init__(self, bom_file): """ Initialize the BomUpload class with a user-uploaded file object """ diff --git a/InvenTree/part/templates/part/bom_upload/select_fields.html b/InvenTree/part/templates/part/bom_upload/select_fields.html index d06846b33d..6bb6223dba 100644 --- a/InvenTree/part/templates/part/bom_upload/select_fields.html +++ b/InvenTree/part/templates/part/bom_upload/select_fields.html @@ -5,6 +5,17 @@