Use default CORE-POS menu

This commit is contained in:
Lance Edgar 2020-09-16 16:15:53 -05:00
parent 2619869ceb
commit 1e06066353

View file

@ -3,10 +3,14 @@
Web Menus
"""
from tailbone_corepos.menus import make_corepos_menu
def simple_menus(request):
url = request.route_url
corepos_menu = make_corepos_menu(request)
menus = [
{
'title': "People",
@ -103,62 +107,7 @@ def simple_menus(request):
},
],
},
{
'title': "CORE-POS",
'type': 'menu',
'items': [
{
'title': "Super Departments",
'url': url('corepos.super_departments'),
'perm': 'corepos.super_departments.list',
},
{
'title': "Departments",
'url': url('corepos.departments'),
'perm': 'corepos.departments.list',
},
{
'title': "Subdepartments",
'url': url('corepos.subdepartments'),
'perm': 'corepos.subdepartments.list',
},
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Products",
'url': url('corepos.products'),
'perm': 'corepos.products.list',
},
{
'title': "Customers",
'url': url('corepos.customers'),
'perm': 'corepos.customers.list',
},
{
'title': "Member Types",
'url': url('corepos.member_types'),
'perm': 'corepos.member_types.list',
},
{
'title': "Members",
'url': url('corepos.members'),
'perm': 'corepos.members.list',
},
{
'title': "Employees",
'url': url('corepos.employees'),
'perm': 'corepos.employees.list',
},
{
'title': "Transaction Details",
'url': url('corepos.transaction_details'),
'perm': 'corepos.transaction_details.list',
},
],
},
corepos_menu,
{
'title': "Shopfoo",
'type': 'menu',