Overhaul vendor catalog batch views, to use BatchMasterView.
This commit is contained in:
parent
62221a1a25
commit
c83a3e6eb0
8 changed files with 62 additions and 125 deletions
|
@ -359,11 +359,18 @@ class ProductsView(MasterView):
|
|||
@classmethod
|
||||
def defaults(cls, config):
|
||||
|
||||
# print labels
|
||||
config.add_tailbone_permission('products', 'products.print_labels',
|
||||
"Print labels for products")
|
||||
|
||||
# view deleted products
|
||||
config.add_tailbone_permission('products', 'products.view_deleted',
|
||||
"View products marked as deleted")
|
||||
|
||||
# make batch from product query
|
||||
config.add_route('products.create_batch', '/products/batch')
|
||||
config.add_view(cls, attr='make_batch', route_name='products.create_batch',
|
||||
renderer='/products/batch.mako',
|
||||
permission='batches.create')
|
||||
renderer='/products/batch.mako', permission='batches.create')
|
||||
|
||||
cls._defaults(config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue