Merge pull request #40993 from rohitwaghchaure/fixed-get_link_to_form-for-SABB

fix: get_link_to_form for serial and batch bundle
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py
index 37bdbac..c0ec359 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/stock_entry.py
@@ -1373,7 +1373,7 @@
 			frappe.throw(
 				_(
 					"The Serial and Batch Bundle {0} is not valid for this transaction. The 'Type of Transaction' should be 'Outward' instead of 'Inward' in Serial and Batch Bundle {0}"
-				).format(get_link_to_form(serial_and_batch_bundle)),
+				).format(get_link_to_form("Serial and Batch Bundle", serial_and_batch_bundle)),
 				title=_("Invalid Serial and Batch Bundle"),
 			)