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