Skip to content

Commit

Permalink
fix: patch call
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed Jul 12, 2021
1 parent 150d405 commit 137e866
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions erpnext/patches/v13_0/migrate_stripe_api.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 137e866

Please sign in to comment.