From 157090a122bfbf6d92973ffe8389c71587ad620c Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 7 Apr 2022 22:33:06 +0530 Subject: [PATCH] fix: reload doc in certificate doctype rename patch --- lms/patches/v0_0/move_certification_to_certificate.py | 2 ++ 1 file changed, 2 insertions(+) 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({