fix: make warning for previously existing SO an alert

(cherry picked from commit 24dcd64c16)
This commit is contained in:
Gursheen Anand
2024-02-28 18:01:27 +05:30
committed by Mergify
parent cda1c5ca10
commit 4f9b194fe9

View File

@@ -249,7 +249,8 @@ class SalesOrder(SellingController):
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(