mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Corrected typo in part.models, simplified MakeBomTemplate function
This commit is contained in:
parent
3d7676e292
commit
46586ba960
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user