Allow bulk-delete for some common batches

This commit is contained in:
Lance Edgar 2019-10-09 11:19:48 -05:00
parent b14a4987d2
commit 18c30fcb05
4 changed files with 4 additions and 0 deletions

View file

@ -64,6 +64,7 @@
</%def> </%def>
<%def name="grid_tools()"> <%def name="grid_tools()">
${parent.grid_tools()}
% if master.results_executable and request.has_perm('{}.execute_multiple'.format(permission_prefix)): % if master.results_executable and request.has_perm('{}.execute_multiple'.format(permission_prefix)):
% if use_buefy: % if use_buefy:
<b-button type="is-primary" <b-button type="is-primary"

View file

@ -49,6 +49,7 @@ class LabelBatchView(BatchMasterView):
url_prefix = '/labels/batches' url_prefix = '/labels/batches'
template_prefix = '/batch/labels' template_prefix = '/batch/labels'
creatable = False creatable = False
bulk_deletable = True
rows_editable = True rows_editable = True
rows_bulk_deletable = True rows_bulk_deletable = True
cloneable = True cloneable = True

View file

@ -42,6 +42,7 @@ class NewProductBatchView(BatchMasterView):
url_prefix = '/batches/newproduct' url_prefix = '/batches/newproduct'
template_prefix = '/batch/newproduct' template_prefix = '/batch/newproduct'
downloadable = True downloadable = True
bulk_deletable = True
rows_editable = True rows_editable = True
form_fields = [ form_fields = [

View file

@ -61,6 +61,7 @@ class ProductBatchView(BatchMasterView):
template_prefix = '/batch/product' template_prefix = '/batch/product'
downloadable = True downloadable = True
cloneable = True cloneable = True
bulk_deletable = True
execution_options_schema = ExecutionOptions execution_options_schema = ExecutionOptions
rows_bulk_deletable = True rows_bulk_deletable = True