From 87a4e872cfc0d3f39fedf98907e728393e5e7948 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 19 May 2026 23:13:30 +0530 Subject: [PATCH] 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. --- erpnext/workspace_sidebar/invoicing.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/workspace_sidebar/invoicing.json b/erpnext/workspace_sidebar/invoicing.json index 0c4a5a8c369..b6ff0c790e2 100644 --- a/erpnext/workspace_sidebar/invoicing.json +++ b/erpnext/workspace_sidebar/invoicing.json @@ -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" },