Highlight delete product batch rows with "pending customer orders" status
This commit is contained in:
parent
637c249c36
commit
ba790823ed
|
@ -76,7 +76,8 @@ class DeleteProductBatchView(BatchMasterView):
|
|||
def row_grid_extra_class(self, row, i):
|
||||
if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
|
||||
return 'warning'
|
||||
if row.status_code == row.STATUS_DELETE_NOT_ALLOWED:
|
||||
if row.status_code in (row.STATUS_DELETE_NOT_ALLOWED,
|
||||
row.STATUS_PENDING_CUSTOMER_ORDERS):
|
||||
return 'notice'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue