Only show "in use" products by default, in grid

This commit is contained in:
Lance Edgar 2021-09-30 18:50:08 -04:00
parent 949495638b
commit c9dace8a26

View file

@ -147,6 +147,9 @@ class ProductView(CoreOfficeMasterView):
g.filters['upc'].default_active = True g.filters['upc'].default_active = True
g.filters['upc'].default_verb = 'contains' g.filters['upc'].default_verb = 'contains'
g.filters['in_use'].default_active = True
g.filters['in_use'].default_verb = 'is_true'
g.set_type('cost', 'currency') g.set_type('cost', 'currency')
g.set_type('normal_price', 'currency') g.set_type('normal_price', 'currency')