fix: reload doc in certificate doctype rename patch

This commit is contained in:
Jannat Patel
2022-04-07 22:33:06 +05:30
parent 0ddf2aad79
commit 157090a122

View File

@@ -1,6 +1,8 @@
import frappe
def execute():
frappe.reload_doc("lms", "doctype", "lms_certification")
frappe.reload_doc("lms", "doctype", "lms_certificate")
old = frappe.get_all("LMS Certification", fields=["name", "course", "student", "issue_date", "expiry_date"])
for data in old:
frappe.get_doc({