Tweak exposure for some fields
This commit is contained in:
parent
514394f561
commit
396b123e1a
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2020 Lance Edgar
|
# Copyright © 2010-2021 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -143,7 +143,11 @@ class BatchView(CoreOfficeMasterView):
|
||||||
|
|
||||||
g.set_type('sale_price', 'currency')
|
g.set_type('sale_price', 'currency')
|
||||||
g.set_type('group_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')
|
g.set_type('cost', 'currency')
|
||||||
|
else:
|
||||||
|
g.remove('cost')
|
||||||
|
|
||||||
g.set_sort_defaults('id')
|
g.set_sort_defaults('id')
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,7 @@ class ProductUserView(CoreOfficeMasterView):
|
||||||
'photo',
|
'photo',
|
||||||
'enable_online',
|
'enable_online',
|
||||||
'sold_out',
|
'sold_out',
|
||||||
|
'sign_count',
|
||||||
]
|
]
|
||||||
|
|
||||||
def configure_grid(self, g):
|
def configure_grid(self, g):
|
||||||
|
|
Loading…
Reference in a new issue