From 6143664f29974edfe0eb9dfb740704ca07913a77 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 6 Jul 2020 21:18:09 -0500 Subject: [PATCH] Use some CORE-specific views, when that integration is enabled --- theo/web/views/__init__.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/theo/web/views/__init__.py b/theo/web/views/__init__.py index 09c54a6..f567aaf 100644 --- a/theo/web/views/__init__.py +++ b/theo/web/views/__init__.py @@ -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')