Files
schuetz3-erpnext/erpnext/patches/v12_0/rename_bank_reconciliation.py
Ankush Menat c07713b860 style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
2022-03-29 17:29:34 +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")