mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 19:25:16 +00:00
chore: convert message to toast notification
(cherry picked from commitfc71001110) (cherry picked from commit7a04bf85bc)
This commit is contained in:
committed by
Mergify
parent
ed50c3d896
commit
02735e69dd
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user