mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
[files] [cleanup/redesign] removed the old file_list structure and also added file listing in setup
This commit is contained in:
@@ -2,11 +2,13 @@ import webnotes, webnotes.utils, os
|
||||
from webnotes.modules.export_file import export_to_files
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("core", "doctype", "file_data")
|
||||
webontes.reset_perms("File Data")
|
||||
|
||||
singles = webnotes.conn.sql_list("""select name from tabDocType
|
||||
where ifnull(issingle,0)=1""")
|
||||
for doctype in webnotes.conn.sql_list("""select parent from tabDocField where
|
||||
fieldname='file_list' and fieldtype='Text'"""):
|
||||
print doctype
|
||||
if doctype in singles:
|
||||
doc = webnotes.doc(doctype, doctype)
|
||||
update_for_doc(doctype, doc)
|
||||
|
||||
Reference in New Issue
Block a user