From d653899372e5d84560c7078a2090db2abd4490ac Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Tue, 11 Mar 2025 21:18:18 +0530 Subject: [PATCH] fix: sla fields patch --- erpnext/patches/v15_0/rename_sla_fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v15_0/rename_sla_fields.py b/erpnext/patches/v15_0/rename_sla_fields.py index e5e69e0921e..6a7439ad257 100644 --- a/erpnext/patches/v15_0/rename_sla_fields.py +++ b/erpnext/patches/v15_0/rename_sla_fields.py @@ -9,10 +9,10 @@ def execute(): if doctype == "Issue": continue - if frappe.db.exists("Custom Field", {"fieldname": doctype + "-resolution_by"}): + if frappe.db.exists("Custom Field", {"name": doctype + "-resolution_by"}): rename_fieldname(doctype + "-resolution_by", "sla_resolution_by") - if frappe.db.exists("Custom Field", {"fieldname": doctype + "-resolution_date"}): + if frappe.db.exists("Custom Field", {"name": doctype + "-resolution_date"}): rename_fieldname(doctype + "-resolution_date", "sla_resolution_date") rename_field("Issue", "resolution_by", "sla_resolution_by")