fix: use route_options for Credit Note and Debit Note sidebar links (#55026)

fix: use route_options instead of filters for Credit Note and Debit Note sidebar links

Filters with ["=", value] format produce broken URLs like
`?is_return=%3D%2C1` instead of `?is_return=1`. Switching to
route_options with a plain JSON object generates correct URLs.
This commit is contained in:
Nabin Hait
2026-05-19 23:13:30 +05:30
committed by GitHub
parent fa403dd23b
commit 87a4e872cf

View File

@@ -80,14 +80,13 @@
{
"child": 1,
"collapsible": 1,
"filters": "[[\"Sales Invoice\",\"is_return\",\"=\",1]]",
"icon": "",
"indent": 0,
"keep_closed": 0,
"label": "Credit Note",
"link_to": "Sales Invoice",
"link_type": "DocType",
"route_options": "",
"route_options": "{\"is_return\": 1}",
"show_arrow": 0,
"type": "Link"
},
@@ -139,12 +138,12 @@
{
"child": 1,
"collapsible": 1,
"filters": "[[\"Purchase Invoice\",\"is_return\",\"=\",1]]",
"indent": 0,
"keep_closed": 0,
"label": "Debit Note",
"link_to": "Purchase Invoice",
"link_type": "DocType",
"route_options": "{\"is_return\": 1}",
"show_arrow": 0,
"type": "Link"
},