Fix bug in products view class

Need to invoke the core View init logic, for `self.enum`
This commit is contained in:
Lance Edgar 2016-11-30 14:08:12 -06:00
parent 62740e8a59
commit dc00239b5f

View file

@ -105,7 +105,7 @@ class ProductsView(MasterView):
VendorAny = orm.aliased(model.Vendor) VendorAny = orm.aliased(model.Vendor)
def __init__(self, request): def __init__(self, request):
self.request = request super(ProductsView, self).__init__(request)
self.print_labels = request.rattail_config.getbool('tailbone', 'products.print_labels', default=False) self.print_labels = request.rattail_config.getbool('tailbone', 'products.print_labels', default=False)
def query(self, session): def query(self, session):