Add new BatchMasterView
for new-style batches.
This commit is contained in:
parent
7338560fc3
commit
62221a1a25
14 changed files with 1112 additions and 93 deletions
|
@ -339,11 +339,7 @@ class ProductsView(MasterView):
|
|||
Threat target for making a batch from current products query.
|
||||
"""
|
||||
session = RattailSession()
|
||||
|
||||
grid = self.make_grid(session=session, pageable=False,
|
||||
main_actions=[], more_actions=[])
|
||||
products = grid._fa_grid.rows
|
||||
|
||||
products = self.get_effective_query(session)
|
||||
batch = provider.make_batch(session, products, progress)
|
||||
if not batch:
|
||||
session.rollback()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue