diff --git a/tailbone_corepos/views/corepos/products.py b/tailbone_corepos/views/corepos/products.py index 6d6b87d..28f8a23 100644 --- a/tailbone_corepos/views/corepos/products.py +++ b/tailbone_corepos/views/corepos/products.py @@ -158,6 +158,10 @@ class ProductFlagView(CoreOfficeMasterView): g.set_link('bit_number') g.set_link('description') + def grid_extra_class(self, flag, i): + if not flag.active: + return 'warning' + def includeme(config): ProductView.defaults(config)