mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
[modules] [fix] patch for storing only hidden modules
This commit is contained in:
10
patches/april_2013/p05_fixes_in_reverse_modules.py
Normal file
10
patches/april_2013/p05_fixes_in_reverse_modules.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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([]))
|
||||
Reference in New Issue
Block a user