Hide "print labels" column on products list view if so configured.
This commit is contained in:
parent
f34ae88c39
commit
62a93d1cd1
|
@ -206,6 +206,8 @@ class ProductsGrid(SearchableAlchemyGridView):
|
|||
g.deletable = True
|
||||
g.delete_route_name = 'product.delete'
|
||||
|
||||
# Maybe add Print Label column.
|
||||
if self.request.rattail_config.getboolean('tailbone', 'products.print_labels', default=True):
|
||||
q = Session.query(LabelProfile)
|
||||
if q.count():
|
||||
def labels(row):
|
||||
|
|
Loading…
Reference in a new issue