mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Merge branch 'master' into edge
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)))))
|
||||
|
||||
@@ -237,5 +237,6 @@ 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",
|
||||
"execute:webnotes.delete_doc('Search Criteria', 'time_log_summary')"
|
||||
]
|
||||
Reference in New Issue
Block a user