From ba790823edcb0746328865810a941a7ba1d67a1b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Mar 2021 17:34:24 -0600 Subject: [PATCH] Highlight delete product batch rows with "pending customer orders" status --- tailbone/views/batch/delproduct.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/views/batch/delproduct.py b/tailbone/views/batch/delproduct.py index bcb0795b..1912c48e 100644 --- a/tailbone/views/batch/delproduct.py +++ b/tailbone/views/batch/delproduct.py @@ -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'