chore: convert message to toast notification

This commit is contained in:
Rohit Waghchaure
2025-08-13 23:48:30 +05:30
parent 99956649e3
commit fc71001110

View File

@@ -493,7 +493,12 @@ def get_parent_row_no(doc, name):
if row.name == name:
return row.idx
frappe.msgprint(_("Parent Row No not found for {0}").format(name))
if name == doc.name:
return None
frappe.msgprint(_("Parent Row No not found for {0}").format(name), alert=True)
return None
@frappe.whitelist()