diff --git a/tailbone_corepos/views/corepos/products.py b/tailbone_corepos/views/corepos/products.py index 6574d6e..94ae9af 100644 --- a/tailbone_corepos/views/corepos/products.py +++ b/tailbone_corepos/views/corepos/products.py @@ -156,6 +156,10 @@ class ProductView(CoreOfficeMasterView): g.set_link('brand') g.set_link('description') + def grid_extra_class(self, product, i): + if not product.in_use: + return 'warning' + def get_instance_title(self, product): return "{} {}".format(product.upc, product.description)