'Copy attachments from `amended_from`'

def copy_attachments_from_amended_from(self):

    from frappe.desk.form.load import get_attachments
    for attach_item in get_attachments(self.doctype, self.amended_from):
        save_url(attach_item.file_url, attach_item.file_name, self.doctype, self.name, u'Home/Attachments', attach_item.is_private)
