From c8b817c87a9e510a865c48ad9e2890c892246e8e Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Wed, 28 Feb 2024 18:01:27 +0530 Subject: [PATCH] fix: make warning for previously existing SO an alert (cherry picked from commit 24dcd64c16eaea2f7ab0585235dfaf64cfe47bf3) --- erpnext/selling/doctype/sales_order/sales_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 826803681816..3821a2371612 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -102,7 +102,8 @@ def validate_po(self): frappe.msgprint( _("Warning: Sales Order {0} already exists against Customer's Purchase Order {1}").format( frappe.bold(so[0][0]), frappe.bold(self.po_no) - ) + ), + alert=True, ) else: frappe.throw(