diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 4df62137ff96..731b841ec90c 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -686,4 +686,4 @@ erpnext.patches.v12_0.purchase_receipt_status erpnext.patches.v12_0.add_company_link_to_einvoice_settings erpnext.patches.v12_0.add_document_type_field_for_italy_einvoicing erpnext.patches.v12_0.create_taxable_value_field_in_purchase_invoice -execute:from frappe.model.utils.rename_field import rename_field;rename_field("Subscription Plan", "payment_plan_id", "product_price_id") +erpnext.patches.v13_0.migrate_stripe_api diff --git a/erpnext/patches/v13_0/migrate_stripe_api.py b/erpnext/patches/v13_0/migrate_stripe_api.py new file mode 100644 index 000000000000..355421a1f427 --- /dev/null +++ b/erpnext/patches/v13_0/migrate_stripe_api.py @@ -0,0 +1,7 @@ +import frappe +from frappe.model.utils.rename_field import rename_field + + +def execute(): + frappe.reload_doc("accounts", "doctype", "subscription_plan") + rename_field("Subscription Plan", "payment_plan_id", "product_price_id")