brotherton-erpnext/erpnext/patches/v12_0/rename_bank_reconciliation.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
500 B
Python
Raw Normal View History

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