mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
[patches] removed export file from update file data patch
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import webnotes, webnotes.utils, os
|
import webnotes, webnotes.utils, os
|
||||||
from webnotes.modules.export_file import export_to_files
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
webnotes.reload_doc("core", "doctype", "file_data")
|
webnotes.reload_doc("core", "doctype", "file_data")
|
||||||
@@ -26,7 +25,6 @@ def execute():
|
|||||||
|
|
||||||
webnotes.conn.sql("""delete from tabDocField where fieldname='file_list'
|
webnotes.conn.sql("""delete from tabDocField where fieldname='file_list'
|
||||||
and parent=%s""", doctype)
|
and parent=%s""", doctype)
|
||||||
export_to_files([["DocType", doctype]])
|
|
||||||
|
|
||||||
def update_for_doc(doctype, doc):
|
def update_for_doc(doctype, doc):
|
||||||
for filedata in doc.file_list.split("\n"):
|
for filedata in doc.file_list.split("\n"):
|
||||||
|
|||||||
Reference in New Issue
Block a user