fix: cannot cancel jv after migrating from v12

This commit is contained in:
Saqib Ansari 2022-01-19 19:37:55 +05:30
parent 5ae44f3a02
commit 04d64567ef
2 changed files with 15 additions and 1 deletions

View File

@ -327,4 +327,5 @@ erpnext.patches.v13_0.agriculture_deprecation_warning
erpnext.patches.v14_0.delete_agriculture_doctypes
erpnext.patches.v13_0.update_exchange_rate_settings
erpnext.patches.v14_0.rearrange_company_fields
erpnext.patches.v14_0.update_leave_notification_template
erpnext.patches.v14_0.update_leave_notification_template
erpnext.patches.v13_0.delete_bank_reconciliation_detail

View File

@ -0,0 +1,13 @@
# Copyright (c) 2019, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
def execute():
if frappe.db.exists('DocType', 'Bank Reconciliation Detail') and \
frappe.db.exists('DocType', 'Bank Clearance Detail'):
frappe.delete_doc("DocType", 'Bank Reconciliation Detail', force=1)