Avoid error for tax field when creating new department
someday should fix that for real..
This commit is contained in:
parent
de8751b86c
commit
aa500351ed
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
# Copyright © 2010-2024 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -111,6 +111,10 @@ class DepartmentView(MasterView):
|
|||
f.set_type('personnel', 'boolean')
|
||||
|
||||
# tax
|
||||
if self.creating:
|
||||
# TODO: make this editable instead
|
||||
f.remove('tax')
|
||||
else:
|
||||
f.set_renderer('tax', self.render_tax)
|
||||
# TODO: make this editable
|
||||
f.set_readonly('tax')
|
||||
|
|
Loading…
Reference in a new issue