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

@api.multi
def _invalidate_documents(self):

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