Highlight delete product batch rows with "pending customer orders" status

This commit is contained in:
Lance Edgar 2021-03-01 17:34:24 -06:00
parent 637c249c36
commit ba790823ed

View file

@ -76,7 +76,8 @@ class DeleteProductBatchView(BatchMasterView):
def row_grid_extra_class(self, row, i): def row_grid_extra_class(self, row, i):
if row.status_code == row.STATUS_PRODUCT_NOT_FOUND: if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
return 'warning' 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' return 'notice'