From 73f11cf19e98d382e4361686bd505fa16e067f2a Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 12 Mar 2025 00:03:08 +0530 Subject: [PATCH] fix: rename sla fields patch (cherry picked from commit b6c18849c5a7ae8065e1e1be686a50a590213fab) --- erpnext/patches/v15_0/rename_sla_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v15_0/rename_sla_fields.py b/erpnext/patches/v15_0/rename_sla_fields.py index 6a7439ad257..0c6d3560b8b 100644 --- a/erpnext/patches/v15_0/rename_sla_fields.py +++ b/erpnext/patches/v15_0/rename_sla_fields.py @@ -4,7 +4,7 @@ from frappe.model.utils.rename_field import rename_field def execute(): - doctypes = frappe.get_all("Service Level Agreement", pluck="document_type") + doctypes = list(set(frappe.get_all("Service Level Agreement", pluck="document_type"))) for doctype in doctypes: if doctype == "Issue": continue