From f90ffcd3dbc1a6ad6a8ea5f11ed13c18ffb60dc7 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 14 Aug 2019 13:35:48 +1000 Subject: [PATCH] Fix buttons for BOM upload form --- InvenTree/part/bom.py | 4 +--- .../part/templates/part/bom_upload/select_fields.html | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index 1a37aa92d0..baf46e8618 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -149,9 +149,7 @@ class BomUploadManager: return len(self.data.headers) def row_count(self): - """ Return the number of rows in the file. - Ignored the top rows as indicated by 'starting row' - """ + """ Return the number of rows in the file. """ if self.data is None: return 0 diff --git a/InvenTree/part/templates/part/bom_upload/select_fields.html b/InvenTree/part/templates/part/bom_upload/select_fields.html index 50e55f40da..026ffb1a40 100644 --- a/InvenTree/part/templates/part/bom_upload/select_fields.html +++ b/InvenTree/part/templates/part/bom_upload/select_fields.html @@ -40,8 +40,8 @@
{{ col.name }} -
@@ -69,8 +69,8 @@ {% for row in bom_rows %} - {{ forloop.counter }}