fix: reload doc in certificate doctype rename patch
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
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"])
|
old = frappe.get_all("LMS Certification", fields=["name", "course", "student", "issue_date", "expiry_date"])
|
||||||
for data in old:
|
for data in old:
|
||||||
frappe.get_doc({
|
frappe.get_doc({
|
||||||
|
|||||||
Reference in New Issue
Block a user