16 lines
559 B
Python
16 lines
559 B
Python
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: MIT. See LICENSE
|
|
|
|
import frappe
|
|
from frappe.model.utils.rename_field import rename_field
|
|
|
|
|
|
def execute():
|
|
"""
|
|
Change notification recipient fields from email to receiver fields
|
|
"""
|
|
frappe.reload_doc("Email", "doctype", "Notification Recipient")
|
|
frappe.reload_doc("Email", "doctype", "Notification")
|
|
|
|
rename_field("Notification Recipient", "email_by_document_field", "receiver_by_document_field")
|
|
rename_field("Notification Recipient", "email_by_role", "receiver_by_role")
|