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.
#
@ -112,7 +112,7 @@ class EmployeeView(MasterView):
g.set_sorter('username', model.User.username)
g.set_renderer('username', self.grid_render_username)
else:
g.hide_column('username')
g.remove('username')
# id
if self.has_perm('edit'):