Update some view config
per upstream changes
This commit is contained in:
parent
0c73ee07d6
commit
1f37a4bd37
|
@ -16,7 +16,7 @@ def includeme(config):
|
|||
config.include('tailbone.views.brands')
|
||||
config.include('tailbone_corepos.views.customers')
|
||||
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.employees')
|
||||
config.include('tailbone.views.families')
|
||||
|
@ -32,7 +32,7 @@ def includeme(config):
|
|||
config.include('tailbone.views.tempmon')
|
||||
config.include('rattail_demo.web.views.upgrades')
|
||||
config.include('tailbone.views.users')
|
||||
config.include('rattail_demo.web.views.vendors')
|
||||
config.include('tailbone_corepos.views.vendors')
|
||||
config.include('tailbone.views.uoms')
|
||||
|
||||
# purchasing / receiving
|
||||
|
|
|
@ -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)
|
|
@ -60,12 +60,9 @@ class ProductView(corepos_base.ProductView, woocommerce_base.ProductView):
|
|||
|
||||
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_view(base.print_labels, route_name='products.print_labels',
|
||||
renderer='json', permission='products.print_labels')
|
||||
|
||||
ProductView.defaults(config)
|
||||
base.PendingProductView.defaults(config)
|
||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue