From c48a8868c281d6e8d35ae5c3d112ca101cb8f0c0 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Tue, 17 Mar 2026 12:36:57 +0530 Subject: [PATCH 1/2] fix: remove payables and receivables workspace (cherry picked from commit 26a9646407c258b6d1360cd6283e9da95ebd9124) # Conflicts: # erpnext/patches.txt --- erpnext/patches.txt | 1 + .../patches/v16_0/remove_payables_receivables_workspace.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 erpnext/patches/v16_0/remove_payables_receivables_workspace.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 40ff506d3e8..4b1fc449473 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -471,3 +471,4 @@ erpnext.patches.v16_0.migrate_asset_type_checkboxes_to_select erpnext.patches.v16_0.update_order_qty_and_requested_qty_based_on_mr_and_po erpnext.patches.v16_0.enable_serial_batch_setting erpnext.patches.v16_0.update_requested_qty_packed_item +erpnext.patches.v16_0.remove_payables_receivables_workspace diff --git a/erpnext/patches/v16_0/remove_payables_receivables_workspace.py b/erpnext/patches/v16_0/remove_payables_receivables_workspace.py new file mode 100644 index 00000000000..74c6e3ce3c7 --- /dev/null +++ b/erpnext/patches/v16_0/remove_payables_receivables_workspace.py @@ -0,0 +1,6 @@ +import frappe + + +def execute(): + for ws in ["Receivables", "Payables"]: + frappe.delete_doc_if_exists("Workspace", ws) From 4e5703c22344ddf545dcef00ef22f3f129552d01 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Tue, 17 Mar 2026 18:23:40 +0530 Subject: [PATCH 2/2] fix: remove workspace sidebar for payables and receivables --- erpnext/patches/v16_0/remove_payables_receivables_workspace.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v16_0/remove_payables_receivables_workspace.py b/erpnext/patches/v16_0/remove_payables_receivables_workspace.py index 74c6e3ce3c7..bd1bd96fe77 100644 --- a/erpnext/patches/v16_0/remove_payables_receivables_workspace.py +++ b/erpnext/patches/v16_0/remove_payables_receivables_workspace.py @@ -3,4 +3,5 @@ import frappe def execute(): for ws in ["Receivables", "Payables"]: + frappe.delete_doc_if_exists("Workspace Sidebar", ws) frappe.delete_doc_if_exists("Workspace", ws)