I tired to copy attachment from one2many field to another one2many based on id. Does write command work ??? The following code doesn't work properly.
existing_documents = self.env['document.product.verify'].search([('docs_id', '=', self.partner_id.id)])
for record1 in self.product_line:
for record2 in existing_documents:
if record1.documents_required_id.id == record2.documents_required_id.id:
print '*****************DOCUMENT EXISTS******************'
record1.write({'attachments': record2.attachments})
print '***************records***************', record1.id, record2.id
print record1.attachments, record2.attachments