[Fix]Attachment in Amended doc

This commit is contained in:
Nabin Hait 2016-12-24 14:51:07 +05:30
parent f2bc961e1b
commit a2215c7a9a

View file

@ -278,7 +278,7 @@ class Document(BaseDocument):
for attach_item in get_attachments(self.doctype, self.amended_from):
#save attachments to new doc
save_url(attach_item.file_url, attach_item.file_name, self.doctype, self.name, "Home/Attachments")
save_url(attach_item.file_url, attach_item.file_name, self.doctype, self.name, "Home/Attachments", attach_item.is_private)
def update_children(self):
'''update child tables'''