From dbab04f21c9a1d8f2537445c44be2f6825ad9f52 Mon Sep 17 00:00:00 2001 From: Anoop Kurungadam Date: Fri, 10 Nov 2023 17:18:20 +0530 Subject: [PATCH] fix: remove incorrect set_vlaue after rename --- .../v15_0/rename_automate_appointment_invoicing.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/healthcare/patches/v15_0/rename_automate_appointment_invoicing.py b/healthcare/patches/v15_0/rename_automate_appointment_invoicing.py index 431af52703..0041090614 100644 --- a/healthcare/patches/v15_0/rename_automate_appointment_invoicing.py +++ b/healthcare/patches/v15_0/rename_automate_appointment_invoicing.py @@ -6,15 +6,7 @@ def execute(): frappe.reload_doc("healthcare", "doctype", frappe.scrub("Healthcare Settings")) try: - # Rename the field rename_field("Healthcare Settings", "automate_appointment_invoicing", "show_payment_popup") - - # Copy the value - old_value = frappe.db.get_single_value("Healthcare Settings", "show_payment_popup") - frappe.db.set_single_value( - "Healthcare Settings", "show_payment_popup", 1 if old_value == 1 else 0 - ) - except Exception as e: if e.args and e.args[0]: raise