Expose views for reports, problem reports

This commit is contained in:
Lance Edgar 2021-12-07 18:06:12 -06:00
parent 1f37a4bd37
commit e23e65155f
2 changed files with 24 additions and 0 deletions

View file

@ -138,6 +138,28 @@ def simple_menus(request):
], ],
} }
reporting_menu = {
'title': "Reporting",
'type': 'menu',
'items': [
{
'title': "New Report",
'url': url('generate_report'),
'perm': 'report_output.generate',
},
{
'title': "Generated Reports",
'url': url('report_output'),
'perm': 'report_output.list',
},
{
'title': "Problem Reports",
'url': url('problem_reports'),
'perm': 'problem_reports.list',
},
],
}
batch_menu = { batch_menu = {
'title': "Batches", 'title': "Batches",
'type': 'menu', 'type': 'menu',
@ -297,6 +319,7 @@ def simple_menus(request):
vendors_menu, vendors_menu,
corepos_menu, corepos_menu,
shopfoo_menu, shopfoo_menu,
reporting_menu,
batch_menu, batch_menu,
] ]

View file

@ -25,6 +25,7 @@ def includeme(config):
config.include('tailbone_corepos.views.people') config.include('tailbone_corepos.views.people')
config.include('rattail_demo.web.views.products') config.include('rattail_demo.web.views.products')
config.include('tailbone.views.reportcodes') config.include('tailbone.views.reportcodes')
config.include('tailbone.views.reports')
config.include('tailbone.views.roles') config.include('tailbone.views.roles')
config.include('tailbone.views.settings') config.include('tailbone.views.settings')
config.include('tailbone_corepos.views.stores') config.include('tailbone_corepos.views.stores')