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

Add supplier information to exported data

This commit is contained in:
Oliver Walters
2019-09-08 23:10:13 +10:00
parent cc452bc270
commit 9212d6047f
4 changed files with 23 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ from django import forms
from django.forms.utils import ErrorDict
from django.utils.translation import ugettext as _
from InvenTree.helpers import GetExportFormats
from InvenTree.forms import HelperForm
from .models import StockLocation, StockItem, StockItemTracking
@@ -113,11 +114,7 @@ class ExportOptionsForm(HelperForm):
def get_format_choices(self):
""" File format choices """
choices = [
('csv', 'CSV'),
('xls', 'XLS'),
('xlsx', 'XLSX'),
]
choices = [(x, x.upper()) for x in GetExportFormats()]
return choices