mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
14 lines
535 B
Python
14 lines
535 B
Python
import frappe
|
|
from frappe.custom.doctype.custom_field.custom_field import rename_fieldname
|
|
from frappe.model.utils.rename_field import rename_field
|
|
|
|
|
|
def execute():
|
|
doctypes = frappe.get_all("Service Level Agreement", pluck="document_type")
|
|
for doctype in doctypes:
|
|
rename_fieldname(doctype + "-resolution_by", "sla_resolution_by")
|
|
rename_fieldname(doctype + "-resolution_date", "sla_resolution_date")
|
|
|
|
rename_field("Issue", "resolution_by", "sla_resolution_by")
|
|
rename_field("Issue", "resolution_date", "sla_resolution_date")
|