Update some method calls to avoid deprecation warnings

This commit is contained in:
Lance Edgar 2022-01-08 19:48:14 -06:00
parent dc28b1337d
commit 6af5157b4e
4 changed files with 12 additions and 11 deletions

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar
# Copyright © 2010-2022 Lance Edgar
#
# This file is part of Rattail.
#
@ -277,8 +277,9 @@ class CustomerOrderView(MasterView):
return text
def get_batch_handler(self):
return get_batch_handler(
self.rattail_config, 'custorder',
app = self.get_rattail_app()
return app.get_batch_handler(
'custorder',
default='rattail.batch.custorder:CustomerOrderBatchHandler')
def create(self, form=None, template='create'):