brotherton-erpnext/erpnext/patches/v12_0/rename_bank_reconciliation.py
2022-03-28 18:52:46 +05:30

15 lines
500 B
Python

# Copyright (c) 2018, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
def execute():
if frappe.db.table_exists("Bank Reconciliation"):
frappe.rename_doc("DocType", "Bank Reconciliation", "Bank Clearance", force=True)
frappe.reload_doc("Accounts", "doctype", "Bank Clearance")
frappe.rename_doc("DocType", "Bank Reconciliation Detail", "Bank Clearance Detail", force=True)
frappe.reload_doc("Accounts", "doctype", "Bank Clearance Detail")