fix: patch for renaming field in Membership Settings
diff --git a/erpnext/non_profit/doctype/membership/membership.py b/erpnext/non_profit/doctype/membership/membership.py
index 5f9a98c..db4481e 100644
--- a/erpnext/non_profit/doctype/membership/membership.py
+++ b/erpnext/non_profit/doctype/membership/membership.py
@@ -284,13 +284,13 @@
def notify_failure(log):
try:
- content = _("""
+ content = """
Dear System Manager,
Razorpay webhook for creating renewing membership subscription failed due to some reason.
Please check the following error log linked below
Error Log: {0}
Regards, Administrator
- """).format(get_link_to_form("Error Log", log.name))
+ """.format(get_link_to_form("Error Log", log.name))
sendmail_to_system_managers("[Important] [ERPNext] Razorpay membership webhook failed , please check.", content)
except:
diff --git a/erpnext/patches/v13_0/update_member_email_address.py b/erpnext/patches/v13_0/update_member_email_address.py
index da7828a..38843e3 100644
--- a/erpnext/patches/v13_0/update_member_email_address.py
+++ b/erpnext/patches/v13_0/update_member_email_address.py
@@ -3,10 +3,11 @@
from __future__ import unicode_literals
import frappe
+from frappe.model.utils.rename_field import rename_field
def execute():
"""add value to email_id column from email"""
-
+
if frappe.db.has_column("Member", "email"):
# Get all members
for member in frappe.db.get_all("Member", pluck="name"):
@@ -17,3 +18,5 @@
# Set the value for it
frappe.db.set_value("Member", member, "email_id", email)
+
+ rename_field("Membership Settings", "enable_auto_invoicing", "enable_invoicing")