feat: configure sidebar items
This commit is contained in:
15
lms/patches/v2_0/sidebar_settings.py
Normal file
15
lms/patches/v2_0/sidebar_settings.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
fields = [
|
||||
"courses",
|
||||
"batches",
|
||||
"certified_participants",
|
||||
"jobs",
|
||||
"statistics",
|
||||
"notifications",
|
||||
]
|
||||
|
||||
for field in fields:
|
||||
frappe.db.set_single_value("LMS Settings", field, 1)
|
||||
Reference in New Issue
Block a user