'Invalidate the cache of the documents followed by ``self``.'

@api.multi
def _invalidate_documents(self):

    for record in self:
        if (record.model and record.res_id):
            self.env[record.model].invalidate_cache(ids=[record.res_id])
