mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
[framework] [cleanup] desktop, todo, messages, modules setup moved to framework
This commit is contained in:
11
patches/april_2013/p04_reverse_modules_list.py
Normal file
11
patches/april_2013/p04_reverse_modules_list.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)))))
|
||||
|
||||
@@ -234,5 +234,5 @@ patch_list = [
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Classic") # 2013-04-02',
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Modern") # 2013-04-02',
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Spartan") # 2013-04-02',
|
||||
|
||||
"patches.april_2013.p04_reverse_modules_list",
|
||||
]
|
||||
Reference in New Issue
Block a user