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)