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 19a7b6d122
commit c8b817c87a

View File

@@ -102,7 +102,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(