Flag discontinued items for main Products grid
no styling is applied but custom app can do so
This commit is contained in:
parent
e97b8a9f7e
commit
a6f608e8cc
|
@ -664,6 +664,8 @@ class ProductView(MasterView):
|
|||
classes = []
|
||||
if product.not_for_sale:
|
||||
classes.append('not-for-sale')
|
||||
if product.discontinued:
|
||||
classes.append('discontinued')
|
||||
if product.deleted:
|
||||
classes.append('deleted')
|
||||
if classes:
|
||||
|
|
Loading…
Reference in a new issue