Add more basic config views, obviating some App Settings

This commit is contained in:
Lance Edgar 2021-12-13 21:33:10 -06:00
parent 16bc3076ad
commit 1244659064
8 changed files with 107 additions and 1 deletions

View file

@ -43,6 +43,7 @@ class VendorView(MasterView):
has_versions = True
touchable = True
supports_autocomplete = True
configurable = True
labels = {
'id': "ID",
@ -168,6 +169,16 @@ class VendorView(MasterView):
(model.VendorContact, 'vendor_uuid'),
]
def configure_get_simple_settings(self):
config = self.rattail_config
return [
# display
{'section': 'rattail',
'option': 'vendor.use_autocomplete',
'type': bool},
]
def includeme(config):
VendorView.defaults(config)