Fix bulk-delete for batch rows, allow it for pricing batches
This commit is contained in:
parent
2df51bfef8
commit
2dc539c357
3 changed files with 16 additions and 2 deletions
|
@ -740,7 +740,7 @@ class BatchMasterView(MasterView):
|
|||
"Delete" all rows matching the current row grid view query. This sets
|
||||
the ``removed`` flag on the rows but does not truly delete them.
|
||||
"""
|
||||
query = self.get_effective_row_query()
|
||||
query = self.get_effective_row_data(sort=False)
|
||||
query.update({'removed': True}, synchronize_session=False)
|
||||
return self.redirect(self.get_action_url('view', self.get_instance()))
|
||||
|
||||
|
|
|
@ -43,8 +43,9 @@ class PricingBatchView(BatchMasterView):
|
|||
route_prefix = 'batch.pricing'
|
||||
url_prefix = '/batches/pricing'
|
||||
creatable = False
|
||||
rows_editable = True
|
||||
bulk_deletable = True
|
||||
rows_editable = True
|
||||
rows_bulk_deletable = True
|
||||
|
||||
grid_columns = [
|
||||
'id',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue