Allow download of results for common product-related tables
This commit is contained in:
parent
9c5f3a3b64
commit
6397a93f97
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
1
tailbone/views/vendors/core.py
vendored
1
tailbone/views/vendors/core.py
vendored
|
@ -43,6 +43,7 @@ class VendorView(MasterView):
|
|||
model_class = model.Vendor
|
||||
has_versions = True
|
||||
touchable = True
|
||||
results_downloadable = True
|
||||
supports_autocomplete = True
|
||||
configurable = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue