feat: batch tabs settings

This commit is contained in:
Jannat Patel
2023-10-30 18:30:58 +05:30
parent e56afba6d3
commit 69591577bf
6 changed files with 173 additions and 73 deletions

View File

@@ -0,0 +1,16 @@
import frappe
def execute():
fields = [
"show_dashboard",
"show_courses",
"show_students",
"show_emails",
"show_assessments",
"show_discussions",
"show_live_class",
]
for field in fields:
frappe.db.set_single_value("LMS Settings", field, 1)

View File

@@ -1,5 +1,7 @@
import frappe
from lms.install import create_batch_source
def execute():
frappe.reload_doc("lms", "doctype", "lms_source")
create_batch_source()