fix: cannot cancel jv after migrating from v12 (#29391)
This commit is contained in:
@@ -343,3 +343,4 @@ erpnext.patches.v13_0.convert_to_website_item_in_item_card_group_template
|
||||
erpnext.patches.v13_0.agriculture_deprecation_warning
|
||||
erpnext.patches.v13_0.update_maintenance_schedule_field_in_visit
|
||||
erpnext.patches.v13_0.hospitality_deprecation_warning
|
||||
erpnext.patches.v13_0.delete_bank_reconciliation_detail
|
||||
|
||||
13
erpnext/patches/v13_0/delete_bank_reconciliation_detail.py
Normal file
13
erpnext/patches/v13_0/delete_bank_reconciliation_detail.py
Normal 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)
|
||||
Reference in New Issue
Block a user