diff --git a/rattail_demo/web/templates/menu.mako b/rattail_demo/web/templates/menu.mako
index d6f1e25..566da83 100644
--- a/rattail_demo/web/templates/menu.mako
+++ b/rattail_demo/web/templates/menu.mako
@@ -22,7 +22,7 @@
% endif
- % if request.has_any_perm('products.list', 'vendors.list', 'brands.list', 'families.list', 'reportcodes.list'):
+ % if request.has_any_perm('products.list', 'vendors.list', 'departments.list', 'subdepartments.list', 'brands.list', 'families.list', 'reportcodes.list'):
Products
@@ -32,6 +32,12 @@
% if request.has_perm('vendors.list'):
- ${h.link_to("Vendors", url('vendors'))}
% endif
+ % if request.has_perm('departments.list'):
+ - ${h.link_to("Departments", url('departments'))}
+ % endif
+ % if request.has_perm('subdepartments.list'):
+ - ${h.link_to("Subdepartments", url('subdepartments'))}
+ % endif
% if request.has_perm('brands.list'):
- ${h.link_to("Brands", url('brands'))}
% endif
@@ -62,23 +68,6 @@
% endif
- % if request.has_any_perm('stores.list', 'departments.list', 'subdepartments.list'):
-
- Company
-
- % if request.has_perm('stores.list'):
- - ${h.link_to("Stores", url('stores'))}
- % endif
- % if request.has_perm('departments.list'):
- - ${h.link_to("Departments", url('departments'))}
- % endif
- % if request.has_perm('subdepartments.list'):
- - ${h.link_to("Subdepartments", url('subdepartments'))}
- % endif
-
-
- % endif
-
% if request.has_any_perm('batch.handheld.list', 'batch.inventory.list'):
Batches
@@ -110,10 +99,13 @@
% endif
- % if request.has_any_perm('users.list', 'userevents.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
+ % if request.has_any_perm('stores.list', 'users.list', 'userevents.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
Admin
+ % if request.has_perm('stores.list'):
+ - ${h.link_to("Stores", url('stores'))}
+ % endif
% if request.has_perm('users.list'):
- ${h.link_to("Users", url('users'))}
% endif
diff --git a/setup.py b/setup.py
index b617c03..18e4bc7 100644
--- a/setup.py
+++ b/setup.py
@@ -45,6 +45,7 @@ requires = [
'invoke', # 0.22.1
'psycopg2', # 2.6.2
+ 'rattail-corepos', # 0.1.0
'Tailbone', # 0.5.49
'xlrd', # 1.0.0
]