'Clear the caches associated to methods decorated with
``tools.ormcache`` or ``tools.ormcache_multi`` for all the models.'

def clear_caches(self):

    self.cache.clear()
    for model in self.models.itervalues():
        model.clear_caches()
