From 7a04bf85bcc4a8d0a83f1c424f022ea3293a9697 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 (cherry picked from commit fc710011107f92e409665a768a4af6cc2633347b) --- 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 6e778266b03..4761e82a048 100644 --- a/erpnext/manufacturing/doctype/bom_creator/bom_creator.py +++ b/erpnext/manufacturing/doctype/bom_creator/bom_creator.py @@ -473,7 +473,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()