Add basic config page for Products
This commit is contained in:
parent
1fbe429a08
commit
16bc3076ad
2 changed files with 86 additions and 0 deletions
|
@ -85,6 +85,7 @@ class ProductView(MasterView):
|
|||
has_versions = True
|
||||
results_downloadable_xlsx = True
|
||||
supports_autocomplete = True
|
||||
configurable = True
|
||||
|
||||
labels = {
|
||||
'item_id': "Item ID",
|
||||
|
@ -1906,6 +1907,22 @@ class ProductView(MasterView):
|
|||
if batch.batch_key == 'delproduct':
|
||||
return self.request.route_url('batch.delproduct.view', uuid=batch.uuid)
|
||||
|
||||
def configure_get_simple_settings(self):
|
||||
config = self.rattail_config
|
||||
return [
|
||||
|
||||
# key field
|
||||
{'section': 'rattail',
|
||||
'option': 'product.key'},
|
||||
{'section': 'rattail',
|
||||
'option': 'product.key_title'},
|
||||
|
||||
# display
|
||||
{'section': 'tailbone',
|
||||
'option': 'products.show_pod_image',
|
||||
'type': bool},
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
cls._product_defaults(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue