feat: batch tabs settings
This commit is contained in:
16
lms/patches/v1_0/batch_tabs_settings.py
Normal file
16
lms/patches/v1_0/batch_tabs_settings.py
Normal 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)
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user