Allow download of results for common product-related tables

This commit is contained in:
Lance Edgar 2022-07-19 14:52:31 -05:00
parent 9c5f3a3b64
commit 6397a93f97
5 changed files with 7 additions and 3 deletions

View file

@ -38,6 +38,7 @@ class BrandView(MasterView):
model_class = model.Brand
has_versions = True
bulk_deletable = True
results_downloadable = True
supports_autocomplete = True
mergeable = True

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar
# Copyright © 2010-2022 Lance Edgar
#
# This file is part of Rattail.
#
@ -40,7 +40,7 @@ class CategoryView(MasterView):
model_title_plural = "Categories"
route_prefix = 'categories'
has_versions = True
results_downloadable_xlsx = True
results_downloadable = True
grid_columns = [
'code',

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar
# Copyright © 2010-2022 Lance Edgar
#
# This file is part of Rattail.
#
@ -43,6 +43,7 @@ class DepartmentView(MasterView):
model_class = model.Department
touchable = True
has_versions = True
results_downloadable = True
supports_autocomplete = True
grid_columns = [

View file

@ -39,6 +39,7 @@ class FamilyView(MasterView):
model_title_plural = "Families"
route_prefix = 'families'
has_versions = True
results_downloadable = True
grid_key = 'families'
grid_columns = [

View file

@ -43,6 +43,7 @@ class VendorView(MasterView):
model_class = model.Vendor
has_versions = True
touchable = True
results_downloadable = True
supports_autocomplete = True
configurable = True