mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
Merge pull request #49155 from rohitwaghchaure/fixed-ignore-message-bom-creator
chore: convert message to toast notification
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user