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:
parent
2c8cc67043
commit
06f959cd09
|
@ -21,5 +21,8 @@ class DemoConfigExtension(ConfigExtension):
|
||||||
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
|
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
|
||||||
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')
|
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')
|
||||||
|
|
||||||
|
# default app handlers
|
||||||
|
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
|
||||||
|
|
||||||
# default import handlers
|
# default import handlers
|
||||||
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')
|
config.setdefault('rattail.importing', 'versions.handler', 'rattail_demo.importing.versions:FromRattailDemoToRattailDemoVersions')
|
||||||
|
|
|
@ -72,6 +72,11 @@ def simple_menus(request):
|
||||||
'url': url('reportcodes'),
|
'url': url('reportcodes'),
|
||||||
'perm': 'reportcodes.list',
|
'perm': 'reportcodes.list',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'title': "Units of Measure",
|
||||||
|
'url': url('uoms'),
|
||||||
|
'perm': 'uoms.list',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,6 +33,7 @@ def includeme(config):
|
||||||
config.include('rattail_demo.web.views.upgrades')
|
config.include('rattail_demo.web.views.upgrades')
|
||||||
config.include('tailbone.views.users')
|
config.include('tailbone.views.users')
|
||||||
config.include('rattail_demo.web.views.vendors')
|
config.include('rattail_demo.web.views.vendors')
|
||||||
|
config.include('tailbone.views.uoms')
|
||||||
|
|
||||||
# purchasing / receiving
|
# purchasing / receiving
|
||||||
config.include('tailbone.views.purchases')
|
config.include('tailbone.views.purchases')
|
||||||
|
|
Loading…
Reference in a new issue