From 5a47503611e9fd63c7e6b5a317f7b1a23aa06dad 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 --- 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 59810544c0c..73cc888fc4a 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -3748,9 +3748,9 @@ def validate_child_on_delete(row, parent, ordered_item=None): ) 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):