More tweaks to new master-based batch views, etc.
This commit is contained in:
parent
7ac4af5f34
commit
874fd6d4b3
7 changed files with 79 additions and 17 deletions
10
tailbone/views/vendors/catalogs.py
vendored
10
tailbone/views/vendors/catalogs.py
vendored
|
@ -152,6 +152,16 @@ class VendorCatalogsView(FileBatchMasterView):
|
|||
kwargs['parsers'] = parsers
|
||||
return kwargs
|
||||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
|
||||
# fix permission group title
|
||||
config.add_tailbone_permission_group('vendorcatalogs', "Vendor Catalogs")
|
||||
|
||||
cls._filebatch_defaults(config)
|
||||
cls._batch_defaults(config)
|
||||
cls._defaults(config)
|
||||
|
||||
|
||||
def includeme(config):
|
||||
VendorCatalogsView.defaults(config)
|
||||
|
|
10
tailbone/views/vendors/invoices.py
vendored
10
tailbone/views/vendors/invoices.py
vendored
|
@ -153,6 +153,16 @@ class VendorInvoicesView(FileBatchMasterView):
|
|||
attrs['class_'] = 'warning'
|
||||
return attrs
|
||||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
|
||||
# fix permission group title
|
||||
config.add_tailbone_permission_group('vendorinvoices', "Vendor Invoices")
|
||||
|
||||
cls._filebatch_defaults(config)
|
||||
cls._batch_defaults(config)
|
||||
cls._defaults(config)
|
||||
|
||||
|
||||
def includeme(config):
|
||||
VendorInvoicesView.defaults(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue