Add top-level Vendors menu; expose purchasing etc.

also bring in custom Stores view, per CORE
This commit is contained in:
Lance Edgar 2021-01-27 22:25:49 -06:00
parent 2446ed9a82
commit b62151d38b
2 changed files with 43 additions and 7 deletions

View file

@ -119,11 +119,6 @@ def simple_menus(request):
'url': url('brands'), 'url': url('brands'),
'perm': 'brands.list', 'perm': 'brands.list',
}, },
{
'title': "Vendors",
'url': url('vendors'),
'perm': 'vendors.list',
},
{ {
'title': "Taxes", 'title': "Taxes",
'url': url('taxes'), 'url': url('taxes'),
@ -137,6 +132,40 @@ def simple_menus(request):
], ],
} }
vendors_menu = {
'title': "Vendors",
'type': 'menu',
'items': [
{
'title': "Vendors",
'url': url('vendors'),
'perm': 'vendors.list',
},
{'type': 'sep'},
{
'title': "Ordering",
'url': url('ordering'),
'perm': 'ordering.list',
},
{
'title': "Receiving",
'url': url('receiving'),
'perm': 'receiving.list',
},
{'type': 'sep'},
{
'title': "Purchases",
'url': url('purchases'),
'perm': 'purchases.list',
},
{
'title': "Credits",
'url': url('purchases.credits'),
'perm': 'purchases.credits.list',
},
],
}
if include_catapult: if include_catapult:
from tailbone_onager.menus import make_catapult_menu from tailbone_onager.menus import make_catapult_menu
catapult_menu = make_catapult_menu(request) catapult_menu = make_catapult_menu(request)
@ -217,6 +246,7 @@ def simple_menus(request):
orders_menu, orders_menu,
people_menu, people_menu,
products_menu, products_menu,
vendors_menu,
] ]
if include_catapult: if include_catapult:

View file

@ -39,7 +39,6 @@ def includeme(config):
# main table views # main table views
config.include('tailbone.views.customergroups') config.include('tailbone.views.customergroups')
config.include('tailbone.views.custorders')
config.include('tailbone.views.datasync') config.include('tailbone.views.datasync')
config.include('tailbone.views.email') config.include('tailbone.views.email')
config.include('tailbone.views.messages') config.include('tailbone.views.messages')
@ -49,6 +48,13 @@ def includeme(config):
config.include('tailbone.views.users') config.include('tailbone.views.users')
config.include('tailbone.views.uoms') config.include('tailbone.views.uoms')
# customer orders
config.include('tailbone.views.custorders')
# purchasing / receiving
config.include('tailbone.views.purchases')
config.include('tailbone.views.purchasing')
# do we integrate w/ Catapult? # do we integrate w/ Catapult?
if integrate_catapult(rattail_config): if integrate_catapult(rattail_config):
config.include('tailbone_onager.views.stores') config.include('tailbone_onager.views.stores')
@ -66,7 +72,7 @@ def includeme(config):
# do we integrate w/ CORE-POS? # do we integrate w/ CORE-POS?
elif integrate_corepos(rattail_config): elif integrate_corepos(rattail_config):
config.include('tailbone.views.stores') config.include('tailbone_corepos.views.stores')
config.include('tailbone_corepos.views.customers') config.include('tailbone_corepos.views.customers')
config.include('tailbone_corepos.views.members') config.include('tailbone_corepos.views.members')
config.include('tailbone.views.employees') config.include('tailbone.views.employees')