2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Launch a modal to select BOM download format

- This will have to change! A client-side hack for now..
- Work out a better way to do this!
This commit is contained in:
Oliver Walters
2019-04-16 21:46:12 +10:00
parent be60fbcc25
commit 7eea9d1a20
7 changed files with 68 additions and 30 deletions

View File

@@ -23,8 +23,10 @@ class BomExportForm(HelperForm):
# TODO - Define these choices somewhere else, and import them here
format_choices = (
('csv', 'CSV'),
('xlsx', 'XLSX'),
('pdf', 'PDF'),
('xml', 'XML'),
('xlsx', 'XLSX'),
('html', 'HTML')
)
# Select export type
@@ -33,6 +35,7 @@ class BomExportForm(HelperForm):
class Meta:
model = Part
fields = [
'format',
]