Skip to content

Commit

Permalink
fix: make warning for previously existing SO an alert
Browse files Browse the repository at this point in the history
(cherry picked from commit 24dcd64)
  • Loading branch information
GursheenK authored and mergify[bot] committed Feb 29, 2024
1 parent cda1c5c commit 4f9b194
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,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(
Expand Down

0 comments on commit 4f9b194

Please sign in to comment.