fix: make warning for previously existing SO an alert

This commit is contained in:
Gursheen Anand 2024-02-28 18:01:27 +05:30
parent 6f5815e44f
commit 24dcd64c16

View File

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