10 lines
262 B
Python
10 lines
262 B
Python
|
import webnotes, json
|
||
|
import webnotes.utils
|
||
|
|
||
|
def execute():
|
||
|
modules = webnotes.get_config().modules
|
||
|
|
||
|
ml = json.loads(webnotes.conn.get_global("hidden_modules"))
|
||
|
|
||
|
if len(ml) == len(modules.keys()):
|
||
|
webnotes.conn.set_global("hidden_modules", json.dumps([]))
|