fix: sla fields patch

(cherry picked from commit d653899372)
This commit is contained in:
Mihir Kandoi
2025-03-11 21:18:18 +05:30
committed by Mergify
parent fc8eeaf4f6
commit 0d044bc5bb

View File

@@ -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")