From 4d9bd84447c0519885809bb98869e813bac4b53e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 26 Jan 2021 17:30:56 -0600 Subject: [PATCH] Use CORE-specific product handler; expose UOMs --- theo/config.py | 1 + theo/web/menus.py | 5 +++++ theo/web/views/__init__.py | 1 + 3 files changed, 7 insertions(+) diff --git a/theo/config.py b/theo/config.py index 2ee3203..026c86b 100644 --- a/theo/config.py +++ b/theo/config.py @@ -47,6 +47,7 @@ class TheoConfig(ConfigExtension): config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail.mail', 'emails', 'theo.emails.theo, theo.emails.corepos') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_corepos:FromTheoToTheoVersions') + config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler') # do we integrate w/ Catapult? elif integrate_catapult(config): diff --git a/theo/web/menus.py b/theo/web/menus.py index 5240046..b60d1ce 100644 --- a/theo/web/menus.py +++ b/theo/web/menus.py @@ -129,6 +129,11 @@ def simple_menus(request): 'url': url('taxes'), 'perm': 'taxes.list', }, + { + 'title': "Units of Measure", + 'url': url('uoms'), + 'perm': 'uoms.list', + }, ], } diff --git a/theo/web/views/__init__.py b/theo/web/views/__init__.py index ec40156..253236e 100644 --- a/theo/web/views/__init__.py +++ b/theo/web/views/__init__.py @@ -47,6 +47,7 @@ def includeme(config): config.include('tailbone.views.roles') config.include('tailbone.views.settings') config.include('tailbone.views.users') + config.include('tailbone.views.uoms') # do we integrate w/ Catapult? if integrate_catapult(rattail_config):