|
|
@@ -164,9 +164,14 @@ class FrappeClient(object): |
|
|
|
new_doc = frappe.get_doc(doc) |
|
|
|
new_doc.insert() |
|
|
|
|
|
|
|
if doctype != "Comment" and not meta.istable: |
|
|
|
self.migrate_doctype("Comment", {"comment_doctype": doctype, "comment_docname": doc["name"]}, |
|
|
|
update={"comment_docname": new_doc.name}, verbose=0) |
|
|
|
if not meta.istable: |
|
|
|
if doctype != "Comment": |
|
|
|
self.migrate_doctype("Comment", {"comment_doctype": doctype, "comment_docname": doc["name"]}, |
|
|
|
update={"comment_docname": new_doc.name}, verbose=0) |
|
|
|
|
|
|
|
if doctype != "File Data": |
|
|
|
self.migrate_doctype("File Data", {"attached_to_doctype": doctype, |
|
|
|
"attached_to_name": doc["name"]}, update={"attached_to_name": new_doc.name}, verbose=0) |
|
|
|
|
|
|
|
def migrate_single(self, doctype): |
|
|
|
doc = self.get_doc(doctype, doctype) |
|
|
|