mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
chore: patch to delete Payment Gateways
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user