From 6397a93f97f5989ba7bec2e3dea86f0c05c6c203 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 19 Jul 2022 14:52:31 -0500 Subject: [PATCH] Allow download of results for common product-related tables --- tailbone/views/brands.py | 1 + tailbone/views/categories.py | 4 ++-- tailbone/views/departments.py | 3 ++- tailbone/views/families.py | 1 + tailbone/views/vendors/core.py | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tailbone/views/brands.py b/tailbone/views/brands.py index 92c6a41b..109c80a7 100644 --- a/tailbone/views/brands.py +++ b/tailbone/views/brands.py @@ -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 diff --git a/tailbone/views/categories.py b/tailbone/views/categories.py index 229d60ef..c76c9292 100644 --- a/tailbone/views/categories.py +++ b/tailbone/views/categories.py @@ -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', diff --git a/tailbone/views/departments.py b/tailbone/views/departments.py index 8c841f6b..1e964624 100644 --- a/tailbone/views/departments.py +++ b/tailbone/views/departments.py @@ -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 = [ diff --git a/tailbone/views/families.py b/tailbone/views/families.py index 1190ad06..0b8ba31d 100644 --- a/tailbone/views/families.py +++ b/tailbone/views/families.py @@ -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 = [ diff --git a/tailbone/views/vendors/core.py b/tailbone/views/vendors/core.py index 9f964d2c..63da1ca9 100644 --- a/tailbone/views/vendors/core.py +++ b/tailbone/views/vendors/core.py @@ -43,6 +43,7 @@ class VendorView(MasterView): model_class = model.Vendor has_versions = True touchable = True + results_downloadable = True supports_autocomplete = True configurable = True