2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Adds exporter and download functionality for BuildOrder table

This commit is contained in:
Oliver
2022-05-12 12:44:15 +10:00
parent d0ddb47b1f
commit c89547f58c
5 changed files with 63 additions and 9 deletions

View File

@ -901,7 +901,6 @@ class PartList(APIDownloadMixin, generics.ListCreateAPIView):
dataset = PartResource().export(queryset=queryset)
filedata = dataset.export(export_format)
filename = f"InvenTree_Parts.{export_format}"
return DownloadFile(filedata, filename)