fix: renamed skill doctype to user skill

This commit is contained in:
Jannat Patel
2022-12-01 12:48:33 +05:30
parent 609628b9cf
commit 136f16c9cc
8 changed files with 20 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
import frappe
def execute():
frappe.reload_doc("lms", "doctype", "user_skill")
skills = frappe.get_all("Skill", pluck="name")
for skill in skills:
frappe.get_doc({
"doctype": "User Skill",
"skill": skill
}).save()