From 137e8666310335e560b9a0314985d5324c7fe19d Mon Sep 17 00:00:00 2001 From: Rohan Bansal Date: Mon, 12 Jul 2021 20:53:24 +0530 Subject: [PATCH] fix: patch call --- erpnext/patches.txt | 2 +- erpnext/patches/v13_0/migrate_stripe_api.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 erpnext/patches/v13_0/migrate_stripe_api.py 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")