Flag discontinued items for main Products grid

no styling is applied but custom app can do so
This commit is contained in:
Lance Edgar 2021-12-20 14:56:25 -06:00
parent e97b8a9f7e
commit a6f608e8cc

View file

@ -664,6 +664,8 @@ class ProductView(MasterView):
classes = [] classes = []
if product.not_for_sale: if product.not_for_sale:
classes.append('not-for-sale') classes.append('not-for-sale')
if product.discontinued:
classes.append('discontinued')
if product.deleted: if product.deleted:
classes.append('deleted') classes.append('deleted')
if classes: if classes: