From 0dfe52a42d26ad2816fbab78cfe1afb68dc0a37a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 7 Jul 2020 19:23:52 -0500 Subject: [PATCH] Don't allow "execute results" for any batches by default custom app must always explicitly opt-in to that feature --- tailbone/views/batch/inventory.py | 1 - tailbone/views/batch/labels.py | 3 +-- tailbone/views/handheld.py | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tailbone/views/batch/inventory.py b/tailbone/views/batch/inventory.py index fd4b9b07..26123707 100644 --- a/tailbone/views/batch/inventory.py +++ b/tailbone/views/batch/inventory.py @@ -63,7 +63,6 @@ class InventoryBatchView(BatchMasterView): index_title = "Inventory" rows_creatable = True bulk_deletable = True - results_executable = True mobile_creatable = True mobile_rows_creatable = True diff --git a/tailbone/views/batch/labels.py b/tailbone/views/batch/labels.py index 7aed7b5a..8aeab62b 100644 --- a/tailbone/views/batch/labels.py +++ b/tailbone/views/batch/labels.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2019 Lance Edgar +# Copyright © 2010-2020 Lance Edgar # # This file is part of Rattail. # @@ -53,7 +53,6 @@ class LabelBatchView(BatchMasterView): rows_editable = True rows_bulk_deletable = True cloneable = True - results_executable = True row_grid_columns = [ 'sequence', diff --git a/tailbone/views/handheld.py b/tailbone/views/handheld.py index 1db59662..66cd480c 100644 --- a/tailbone/views/handheld.py +++ b/tailbone/views/handheld.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2019 Lance Edgar +# Copyright © 2010-2020 Lance Edgar # # This file is part of Rattail. # @@ -64,7 +64,6 @@ class HandheldBatchView(FileBatchMasterView): url_prefix = '/batch/handheld' execution_options_schema = ExecutionOptions editable = False - results_executable = True model_row_class = model.HandheldBatchRow rows_creatable = False