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

View file

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