diff --git a/tailbone_corepos/views/batch/vendorcatalog.py b/tailbone_corepos/views/batch/vendorcatalog.py index 57a7a81..afd4e4b 100644 --- a/tailbone_corepos/views/batch/vendorcatalog.py +++ b/tailbone_corepos/views/batch/vendorcatalog.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2022 Lance Edgar +# Copyright © 2010-2023 Lance Edgar # # This file is part of Rattail. # @@ -65,7 +65,7 @@ class VendorCatalogView(base.VendorCatalogView): kwargs = super(VendorCatalogView, self).get_batch_kwargs(batch) if 'vendor_name' not in kwargs and batch.vendor_id: - vendor = CoreOfficeSession.query(corepos.Vendor).get(batch.vendor_id) + vendor = CoreOfficeSession.get(corepos.Vendor, batch.vendor_id) if vendor: kwargs['vendor_name'] = vendor.name