12 lines
341 B
Python
12 lines
341 B
Python
import frappe
|
|
from frappe.query_builder.utils import DocType
|
|
|
|
|
|
def execute():
|
|
# Email Template & Help Article have owner field that doesn't have any additional functionality
|
|
# Only ToDo has to be updated.
|
|
|
|
ToDo = DocType("ToDo")
|
|
frappe.reload_doctype("ToDo", force=True)
|
|
|
|
frappe.qb.update(ToDo).set(ToDo.allocated_to, ToDo.owner).run()
|