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 = []
|
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:
|
||||||
|
|
Loading…
Reference in a new issue