Update some view config

per upstream changes
This commit is contained in:
Lance Edgar 2021-11-29 17:39:39 -06:00
parent 0c73ee07d6
commit 1f37a4bd37
4 changed files with 3 additions and 42 deletions

View file

@ -16,7 +16,7 @@ def includeme(config):
config.include('tailbone.views.brands') config.include('tailbone.views.brands')
config.include('tailbone_corepos.views.customers') config.include('tailbone_corepos.views.customers')
config.include('tailbone.views.datasync') config.include('tailbone.views.datasync')
config.include('rattail_demo.web.views.departments') config.include('tailbone_corepos.views.departments')
config.include('tailbone.views.email') config.include('tailbone.views.email')
config.include('tailbone.views.employees') config.include('tailbone.views.employees')
config.include('tailbone.views.families') config.include('tailbone.views.families')
@ -32,7 +32,7 @@ def includeme(config):
config.include('tailbone.views.tempmon') config.include('tailbone.views.tempmon')
config.include('rattail_demo.web.views.upgrades') config.include('rattail_demo.web.views.upgrades')
config.include('tailbone.views.users') config.include('tailbone.views.users')
config.include('rattail_demo.web.views.vendors') config.include('tailbone_corepos.views.vendors')
config.include('tailbone.views.uoms') config.include('tailbone.views.uoms')
# purchasing / receiving # purchasing / receiving

View file

@ -1,18 +0,0 @@
# -*- coding: utf-8; -*-
"""
Department views
"""
from tailbone.views import departments as base
# NOTE: the main point of this module is to bring this in
from tailbone_corepos.views.departments import DepartmentView
def includeme(config):
# autocomplete
config.add_route('departments.autocomplete', '/departments/autocomplete')
config.add_view(base.DepartmentsAutocomplete, route_name='departments.autocomplete',
renderer='json', permission='departments.list')
DepartmentView.defaults(config)

View file

@ -60,12 +60,9 @@ class ProductView(corepos_base.ProductView, woocommerce_base.ProductView):
def includeme(config): def includeme(config):
config.add_route('products.autocomplete', '/products/autocomplete')
config.add_view(base.ProductsAutocomplete, route_name='products.autocomplete',
renderer='json', permission='products.list')
config.add_route('products.print_labels', '/products/labels') config.add_route('products.print_labels', '/products/labels')
config.add_view(base.print_labels, route_name='products.print_labels', config.add_view(base.print_labels, route_name='products.print_labels',
renderer='json', permission='products.print_labels') renderer='json', permission='products.print_labels')
ProductView.defaults(config) ProductView.defaults(config)
base.PendingProductView.defaults(config)

View file

@ -1,18 +0,0 @@
# -*- coding: utf-8; -*-
"""
Vendor views
"""
from tailbone.views import vendors as base
# NOTE: the main point of this module is to bring this in
from tailbone_corepos.views.vendors import VendorView
def includeme(config):
# autocomplete
config.add_route('vendors.autocomplete', '/vendors/autocomplete')
config.add_view(base.VendorsAutocomplete, route_name='vendors.autocomplete',
renderer='json', permission='vendors.list')
VendorView.defaults(config)