diff --git a/tailbone/views/reports.py b/tailbone/views/reports.py index c13c6af1..7fbdde03 100644 --- a/tailbone/views/reports.py +++ b/tailbone/views/reports.py @@ -305,6 +305,7 @@ class GenerateReport(View): # TODO: should probably "group" certain reports together somehow? # e.g. some for customers/membership, others for product movement etc. values = [(r.type_key, r.name) for r in reports.values()] + values.sort(key=lambda r: r[1]) if use_buefy: form.set_widget('report_type', forms.widgets.CustomSelectWidget(values=values, size=10)) form.widgets['report_type'].set_template_values(input_handler='reportTypeChanged')