Allow bulk-delete for some common batches
This commit is contained in:
parent
b14a4987d2
commit
18c30fcb05
|
@ -64,6 +64,7 @@
|
|||
</%def>
|
||||
|
||||
<%def name="grid_tools()">
|
||||
${parent.grid_tools()}
|
||||
% if master.results_executable and request.has_perm('{}.execute_multiple'.format(permission_prefix)):
|
||||
% if use_buefy:
|
||||
<b-button type="is-primary"
|
||||
|
|
|
@ -49,6 +49,7 @@ class LabelBatchView(BatchMasterView):
|
|||
url_prefix = '/labels/batches'
|
||||
template_prefix = '/batch/labels'
|
||||
creatable = False
|
||||
bulk_deletable = True
|
||||
rows_editable = True
|
||||
rows_bulk_deletable = True
|
||||
cloneable = True
|
||||
|
|
|
@ -42,6 +42,7 @@ class NewProductBatchView(BatchMasterView):
|
|||
url_prefix = '/batches/newproduct'
|
||||
template_prefix = '/batch/newproduct'
|
||||
downloadable = True
|
||||
bulk_deletable = True
|
||||
rows_editable = True
|
||||
|
||||
form_fields = [
|
||||
|
|
|
@ -61,6 +61,7 @@ class ProductBatchView(BatchMasterView):
|
|||
template_prefix = '/batch/product'
|
||||
downloadable = True
|
||||
cloneable = True
|
||||
bulk_deletable = True
|
||||
execution_options_schema = ExecutionOptions
|
||||
rows_bulk_deletable = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue