From 4c53af049464b7458a971e3f1231359255f9aaf4 Mon Sep 17 00:00:00 2001 From: Pandiyan5273 Date: Tue, 6 Jan 2026 12:58:54 +0530 Subject: [PATCH] fix(accounts): correct sales order item deletion message for MR and PO linkage (cherry picked from commit 5a47503611e9fd63c7e6b5a317f7b1a23aa06dad) --- erpnext/controllers/accounts_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 1f6b6ca17c9..172c63bebf6 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -3714,9 +3714,9 @@ def validate_child_on_delete(row, parent): ) if flt(row.ordered_qty): frappe.throw( - _("Row #{0}: Cannot delete item {1} which is assigned to customer's purchase order.").format( - row.idx, row.item_code - ) + _( + "Row #{0}: Cannot delete item {1} which is already ordered against this Sales Order." + ).format(row.idx, row.item_code) ) if parent.doctype == "Purchase Order" and flt(row.received_qty):