Expose purchasing views

This commit is contained in:
Lance Edgar 2020-08-20 17:56:55 -05:00
parent 852f9d4902
commit 2d3c4fd935
2 changed files with 52 additions and 20 deletions

View file

@ -8,6 +8,32 @@ def simple_menus(request):
url = request.route_url
menus = [
{
'title': "People",
'type': 'menu',
'items': [
{
'title': "Members",
'url': url('members'),
'perm': 'members.list',
},
{
'title': "Customers",
'url': url('customers'),
'perm': 'customers.list',
},
{
'title': "Employees",
'url': url('employees'),
'perm': 'employees.list',
},
{
'title': "All People",
'url': url('people'),
'perm': 'people.list',
},
],
},
{
'title': "Products",
'type': 'menu',
@ -17,11 +43,6 @@ def simple_menus(request):
'url': url('products'),
'perm': 'products.list',
},
{
'title': "Vendors",
'url': url('vendors'),
'perm': 'vendors.list',
},
{
'title': "Departments",
'url': url('departments'),
@ -50,28 +71,35 @@ def simple_menus(request):
],
},
{
'title': "People",
'title': "Vendors",
'type': 'menu',
'items': [
{
'title': "Members",
'url': url('members'),
'perm': 'members.list',
'title': "Vendors",
'url': url('vendors'),
'perm': 'vendors.list',
},
{'type': 'sep'},
{
'title': "Ordering",
'url': url('ordering'),
'perm': 'ordering.list',
},
{
'title': "Customers",
'url': url('customers'),
'perm': 'customers.list',
'title': "Receiving",
'url': url('receiving'),
'perm': 'receiving.list',
},
{'type': 'sep'},
{
'title': "Purchases",
'url': url('purchases'),
'perm': 'purchases.list',
},
{
'title': "Employees",
'url': url('employees'),
'perm': 'employees.list',
},
{
'title': "All People",
'url': url('people'),
'perm': 'people.list',
'title': "Credits",
'url': url('purchases.credits'),
'perm': 'purchases.credits.list',
},
],
},

View file

@ -34,6 +34,10 @@ def includeme(config):
config.include('tailbone.views.users')
config.include('rattail_demo.web.views.vendors')
# purchasing / receiving
config.include('tailbone.views.purchases')
config.include('tailbone.views.purchasing')
# core-pos views
config.include('tailbone_corepos.views.corepos')