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:
@@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user