brotherton-erpnext/patches/april_2013/p05_fixes_in_reverse_modules.py
2013-04-11 09:36:20 +05:30

10 lines
270 B
Python

import webnotes, json
import webnotes.utils
def execute():
modules = webnotes.get_config().modules
ml = json.loads(webnotes.conn.get_global("hidden_modules") or "[]")
if len(ml) == len(modules.keys()):
webnotes.conn.set_global("hidden_modules", json.dumps([]))