Expose the Units of Measure views in web app

also this declares the CORE-specific product handler to be our default
This commit is contained in:
Lance Edgar 2021-01-21 17:42:06 -06:00
parent 2c8cc67043
commit 06f959cd09
3 changed files with 9 additions and 0 deletions

View file

@ -21,5 +21,8 @@ class DemoConfigExtension(ConfigExtension):
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')
# default app handlers
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
# default import handlers
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')

View file

@ -72,6 +72,11 @@ def simple_menus(request):
'url': url('reportcodes'),
'perm': 'reportcodes.list',
},
{
'title': "Units of Measure",
'url': url('uoms'),
'perm': 'uoms.list',
},
],
},
{

View file

@ -33,6 +33,7 @@ def includeme(config):
config.include('rattail_demo.web.views.upgrades')
config.include('tailbone.views.users')
config.include('rattail_demo.web.views.vendors')
config.include('tailbone.views.uoms')
# purchasing / receiving
config.include('tailbone.views.purchases')