11 lines
279 B
Python
11 lines
279 B
Python
|
import webnotes, json
|
||
|
import webnotes.utils
|
||
|
|
||
|
def execute():
|
||
|
modules = webnotes.get_config().modules
|
||
|
|
||
|
ml = json.loads(webnotes.conn.get_global("modules_list") or "[]")
|
||
|
|
||
|
webnotes.conn.set_global("hidden_modules",
|
||
|
json.dumps(list(set(modules.keys()).difference(set(ml)))))
|
||
|
|