Tweak exposure for some fields
This commit is contained in:
parent
514394f561
commit
396b123e1a
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
# Copyright © 2010-2021 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -143,7 +143,11 @@ class BatchView(CoreOfficeMasterView):
|
|||
|
||||
g.set_type('sale_price', 'currency')
|
||||
g.set_type('group_sale_price', 'currency')
|
||||
# TODO: some older installs don't have this field
|
||||
if hasattr(corepos.BatchItem, 'cost'):
|
||||
g.set_type('cost', 'currency')
|
||||
else:
|
||||
g.remove('cost')
|
||||
|
||||
g.set_sort_defaults('id')
|
||||
|
||||
|
|
|
@ -352,6 +352,7 @@ class ProductUserView(CoreOfficeMasterView):
|
|||
'photo',
|
||||
'enable_online',
|
||||
'sold_out',
|
||||
'sign_count',
|
||||
]
|
||||
|
||||
def configure_grid(self, g):
|
||||
|
|
Loading…
Reference in a new issue