From dedb5e23f7b3e1de5389989fbf98f9a821860500 Mon Sep 17 00:00:00 2001 From: Anand Baburajan Date: Mon, 3 Jul 2023 13:06:46 +0530 Subject: [PATCH] fix: delete loan module workspace properly after separation (#35971) * fix: delete loan module workspace properly after separation * chore: run remove_loan_management_module patch again --- erpnext/patches.txt | 2 +- erpnext/patches/v15_0/remove_loan_management_module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index dc056635ed..b3b9bc60b7 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -331,6 +331,6 @@ execute:frappe.delete_doc('DocType', 'Cash Flow Mapper', ignore_missing=True) execute:frappe.delete_doc('DocType', 'Cash Flow Mapping Template', ignore_missing=True) execute:frappe.delete_doc('DocType', 'Cash Flow Mapping Accounts', ignore_missing=True) erpnext.patches.v14_0.cleanup_workspaces -erpnext.patches.v15_0.remove_loan_management_module +erpnext.patches.v15_0.remove_loan_management_module #2023-07-03 erpnext.patches.v14_0.set_report_in_process_SOA erpnext.buying.doctype.supplier.patches.migrate_supplier_portal_users \ No newline at end of file diff --git a/erpnext/patches/v15_0/remove_loan_management_module.py b/erpnext/patches/v15_0/remove_loan_management_module.py index 6f08c361ba..8242f9cce5 100644 --- a/erpnext/patches/v15_0/remove_loan_management_module.py +++ b/erpnext/patches/v15_0/remove_loan_management_module.py @@ -7,7 +7,7 @@ def execute(): frappe.delete_doc("Module Def", "Loan Management", ignore_missing=True, force=True) - frappe.delete_doc("Workspace", "Loan Management", ignore_missing=True, force=True) + frappe.delete_doc("Workspace", "Loans", ignore_missing=True, force=True) print_formats = frappe.get_all( "Print Format", {"module": "Loan Management", "standard": "Yes"}, pluck="name"