From 9735aed5b025e4ea8b71d9fe300e6912ac37bf5f Mon Sep 17 00:00:00 2001 From: sokumon Date: Wed, 23 Apr 2025 01:17:49 +0530 Subject: [PATCH] fix(patch): remove ep related fields from notifcation settings --- frappe/patches.txt | 1 + .../remove_deprecated_fields_from_notfication_settings.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 frappe/patches/v16_0/remove_deprecated_fields_from_notfication_settings.py diff --git a/frappe/patches.txt b/frappe/patches.txt index 3f8e8367ae..721620a374 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -245,3 +245,4 @@ frappe.patches.v16_0.move_role_desk_settings_to_user frappe.printing.doctype.print_format.patches.sets_wkhtmltopdf_as_default_for_pdf_generator_field frappe.patches.v14_0.fix_user_settings_collation execute:frappe.core.doctype.system_settings.system_settings.sync_system_settings +frappe.patches.v16_0.remove_deprecated_fields_from_notfication_settings \ No newline at end of file diff --git a/frappe/patches/v16_0/remove_deprecated_fields_from_notfication_settings.py b/frappe/patches/v16_0/remove_deprecated_fields_from_notfication_settings.py new file mode 100644 index 0000000000..b3064b0f63 --- /dev/null +++ b/frappe/patches/v16_0/remove_deprecated_fields_from_notfication_settings.py @@ -0,0 +1,8 @@ +import frappe + + +def execute(): + frappe.model.delete_fields( + {"Notification Settings": ["enable_email_energy_point", "energy_points_system_notifications"]}, + delete=1, + )