diff --git a/lms/patches/v0_0/move_certification_to_certificate.py b/lms/patches/v0_0/move_certification_to_certificate.py index d0eb3258..ab8c10b5 100644 --- a/lms/patches/v0_0/move_certification_to_certificate.py +++ b/lms/patches/v0_0/move_certification_to_certificate.py @@ -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({