Use some CORE-specific views, when that integration is enabled

This commit is contained in:
Lance Edgar 2020-07-06 21:18:09 -05:00
parent 433ab27637
commit 6143664f29

View file

@ -43,21 +43,21 @@ def includeme(config):
config.include('tailbone.views.datasync')
config.include('tailbone.views.email')
config.include('tailbone.views.messages')
config.include('tailbone.views.members')
config.include('tailbone.views.people')
config.include('tailbone.views.reportcodes')
config.include('tailbone.views.roles')
config.include('tailbone.views.settings')
config.include('tailbone.views.subdepartments')
config.include('tailbone.views.users')
# do we integrate w/ Catapult?
if integrate_catapult(rattail_config):
config.include('tailbone_onager.views.stores')
config.include('tailbone_onager.views.customers')
config.include('tailbone.views.members')
config.include('tailbone_onager.views.employees')
config.include('tailbone.views.people')
config.include('tailbone_onager.views.taxes')
config.include('tailbone_onager.views.departments')
config.include('tailbone.views.subdepartments')
config.include('tailbone_onager.views.brands')
config.include('tailbone_onager.views.vendors')
config.include('tailbone_onager.views.products')
@ -66,21 +66,27 @@ def includeme(config):
# do we integrate w/ CORE-POS?
elif integrate_corepos(rattail_config):
config.include('tailbone.views.stores')
config.include('tailbone.views.customers')
config.include('tailbone_corepos.views.customers')
config.include('tailbone_corepos.views.members')
config.include('tailbone.views.employees')
config.include('tailbone_corepos.views.people')
config.include('tailbone.views.taxes')
config.include('tailbone.views.departments')
config.include('tailbone_corepos.views.departments')
config.include('tailbone_corepos.views.subdepartments')
config.include('tailbone.views.brands')
config.include('tailbone.views.vendors')
config.include('tailbone.views.products')
config.include('tailbone_corepos.views.vendors')
config.include('tailbone_corepos.views.products')
config.include('tailbone_corepos.views.corepos')
else: # no POS integration
config.include('tailbone.views.stores')
config.include('tailbone.views.customers')
config.include('tailbone.views.members')
config.include('tailbone.views.employees')
config.include('tailbone.views.people')
config.include('tailbone.views.taxes')
config.include('tailbone.views.departments')
config.include('tailbone.views.subdepartments')
config.include('tailbone.views.brands')
config.include('tailbone.views.vendors')
config.include('tailbone.views.products')