Add nesting for CORE-POS top menu

too many items in this menu already!
This commit is contained in:
Lance Edgar 2021-02-01 11:55:41 -06:00
parent bd1be88be4
commit 4df8439fd6

View file

@ -33,6 +33,10 @@ def make_corepos_menu(request):
corepos_menu = {
'title': "CORE-POS",
'type': 'menu',
'items': [
{
'title': "People",
'type': 'menu',
'items': [
{
'title': "Customers (Legacy)",
@ -54,7 +58,12 @@ def make_corepos_menu(request):
'url': url('corepos.employees'),
'perm': 'corepos.employees.list',
},
{'type': 'sep'},
],
},
{
'title': "Products",
'type': 'menu',
'items': [
{
'title': "Products",
'url': url('corepos.products'),
@ -70,6 +79,7 @@ def make_corepos_menu(request):
'url': url('corepos.scale_items'),
'perm': 'corepos.scale_items.list',
},
{'type': 'sep'},
{
'title': "Super Departments",
'url': url('corepos.super_departments'),
@ -85,27 +95,6 @@ def make_corepos_menu(request):
'url': url('corepos.subdepartments'),
'perm': 'corepos.subdepartments.list',
},
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Origins",
'url': url('corepos.origins'),
'perm': 'corepos.origins.list',
},
{'type': 'sep'},
{
'title': "Tax Rates",
'url': url('corepos.taxrates'),
'perm': 'corepos.taxrates.list',
},
{
'title': "House Coupons",
'url': url('corepos.house_coupons'),
'perm': 'corepos.house_coupons.list',
},
{'type': 'sep'},
{
'title': "Batches",
@ -117,22 +106,60 @@ def make_corepos_menu(request):
'url': url('corepos.batch_types'),
'perm': 'corepos.batch_types.list',
},
{'type': 'sep'},
{
'title': "Parameters",
'url': url('corepos.parameters'),
'perm': 'corepos.parameters.list',
],
},
{
'title': "Vendors",
'type': 'menu',
'items': [
{
'title': "Vendors",
'url': url('corepos.vendors'),
'perm': 'corepos.vendors.list',
},
{
'title': "Origins",
'url': url('corepos.origins'),
'perm': 'corepos.origins.list',
},
],
},
{
'title': "Transactions",
'type': 'menu',
'items': [
{
'title': "Tax Rates",
'url': url('corepos.taxrates'),
'perm': 'corepos.taxrates.list',
},
{
'title': "House Coupons",
'url': url('corepos.house_coupons'),
'perm': 'corepos.house_coupons.list',
},
{
'title': "Transaction Details",
'url': url('corepos.transaction_details'),
'perm': 'corepos.transaction_details.list',
},
],
},
{
'title': "Misc.",
'type': 'menu',
'items': [
{
'title': "Stores",
'url': url('corepos.stores'),
'perm': 'corepos.stores.list',
},
{'type': 'sep'},
{
'title': "Transaction Details",
'url': url('corepos.transaction_details'),
'perm': 'corepos.transaction_details.list',
'title': "Parameters",
'url': url('corepos.parameters'),
'perm': 'corepos.parameters.list',
},
],
},
],
}