From fc710011107f92e409665a768a4af6cc2633347b Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 13 Aug 2025 23:48:30 +0530 Subject: [PATCH] chore: convert message to toast notification --- erpnext/manufacturing/doctype/bom_creator/bom_creator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/bom_creator/bom_creator.py b/erpnext/manufacturing/doctype/bom_creator/bom_creator.py index e8b27268ff3..78a79bead09 100644 --- a/erpnext/manufacturing/doctype/bom_creator/bom_creator.py +++ b/erpnext/manufacturing/doctype/bom_creator/bom_creator.py @@ -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()