Add support for CORE-POS jump button when viewing Department

This commit is contained in:
Lance Edgar 2020-03-14 21:03:48 -05:00
parent 07a36982d7
commit 0bf3fcfba4
2 changed files with 19 additions and 1 deletions

View file

@ -18,7 +18,7 @@ def includeme(config):
config.include('tailbone.views.brands') config.include('tailbone.views.brands')
config.include('tailbone.views.customers') config.include('tailbone.views.customers')
config.include('tailbone.views.datasync') config.include('tailbone.views.datasync')
config.include('tailbone.views.departments') config.include('rattail_demo.web.views.departments')
config.include('rattail_demo.web.views.email') config.include('rattail_demo.web.views.email')
config.include('rattail_demo.web.views.employees') config.include('rattail_demo.web.views.employees')
config.include('tailbone.views.families') config.include('tailbone.views.families')

View file

@ -0,0 +1,18 @@
# -*- 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)