[Fix]Attachment in Amended doc
This commit is contained in:
parent
f2bc961e1b
commit
a2215c7a9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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'''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue