chore: patch to delete Payment Gateways
This commit is contained in:
parent
b1770b3f86
commit
296b233659
@ -344,5 +344,6 @@ erpnext.patches.v15_0.delete_woocommerce_settings_doctype
|
|||||||
erpnext.patches.v14_0.migrate_deferred_accounts_to_item_defaults
|
erpnext.patches.v14_0.migrate_deferred_accounts_to_item_defaults
|
||||||
erpnext.patches.v14_0.update_invoicing_period_in_subscription
|
erpnext.patches.v14_0.update_invoicing_period_in_subscription
|
||||||
execute:frappe.delete_doc("Page", "welcome-to-erpnext")
|
execute:frappe.delete_doc("Page", "welcome-to-erpnext")
|
||||||
|
erpnext.patches.v15_0.delete_payment_gateway_doctypes
|
||||||
# below migration patch should always run last
|
# below migration patch should always run last
|
||||||
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
|
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
|
||||||
|
6
erpnext/patches/v15_0/delete_payment_gateway_doctypes.py
Normal file
6
erpnext/patches/v15_0/delete_payment_gateway_doctypes.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
for dt in ("GoCardless Settings", "GoCardless Mandate", "Mpesa Settings"):
|
||||||
|
frappe.delete_doc("DocType", dt, ignore_missing=True)
|
Loading…
x
Reference in New Issue
Block a user