From 46586ba960d1917025e723dcb0ad401a374e00a3 Mon Sep 17 00:00:00 2001 From: eeintech Date: Sun, 5 Jul 2020 16:25:05 -0500 Subject: [PATCH] Corrected typo in part.models, simplified MakeBomTemplate function --- InvenTree/part/bom.py | 4 ++-- InvenTree/part/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index 16a8b0b16d..61698d57bf 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -30,8 +30,8 @@ def MakeBomTemplate(fmt): if not IsValidBOMFormat(fmt): fmt = 'csv' - query = BomItem.objects.filter(pk=None) - dataset = BomItemResource().export(queryset=query) + # query = BomItem.objects.filter(pk=None) + dataset = BomItemResource().export() data = dataset.export(fmt) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 550645cb68..3fe3deb15c 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -1355,7 +1355,7 @@ class PartParameter(models.Model): class BomItem(models.Model): """ A BomItem links a part to its component items. A part can have a BOM (bill of materials) which defines - which parts are required (and in what quatity) to make it. + which parts are required (and in what quantity) to make it. Attributes: part: Link to the parent part (the part that will be produced)