mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 05:28:27 +00:00
fix: use get_url_to_form instead
(cherry picked from commit 7a82b37f76)
This commit is contained in:
@@ -17,6 +17,7 @@ from frappe.utils import (
|
|||||||
comma_and,
|
comma_and,
|
||||||
flt,
|
flt,
|
||||||
get_link_to_form,
|
get_link_to_form,
|
||||||
|
get_url_to_form,
|
||||||
getdate,
|
getdate,
|
||||||
now_datetime,
|
now_datetime,
|
||||||
nowdate,
|
nowdate,
|
||||||
@@ -912,11 +913,9 @@ class ProductionPlan(Document):
|
|||||||
|
|
||||||
frappe.flags.mute_messages = False
|
frappe.flags.mute_messages = False
|
||||||
|
|
||||||
from urllib.parse import quote_plus
|
|
||||||
|
|
||||||
if material_request_list:
|
if material_request_list:
|
||||||
material_request_list = [
|
material_request_list = [
|
||||||
f"""<a href="/app/Form/Material Request/{quote_plus(m.name)}">{m.name}</a>"""
|
f"""<a href="{get_url_to_form("Material Request", m.name)}">{m.name}</a>"""
|
||||||
for m in material_request_list
|
for m in material_request_list
|
||||||
]
|
]
|
||||||
msgprint(_("{0} created").format(comma_and(material_request_list)))
|
msgprint(_("{0} created").format(comma_and(material_request_list)))
|
||||||
|
|||||||
Reference in New Issue
Block a user