fix: sla fields patch

This commit is contained in:
Mihir Kandoi
2025-03-11 21:18:18 +05:30
parent 18fdd17e94
commit d653899372

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