'Load a given module in the registry, and return the names of the
modified models.
At the Python level, the modules are already loaded, but not yet on a
per-registry level. This method populates a registry with the given
modules, i.e. it instanciates all the classes of a the given module
and registers them in the registry.'

def load(self, cr, module):

    from .. import models
    lazy_property.reset_all(self)
    model_names = []
    for cls in models.MetaModel.module_to_models.get(module.name, []):
        model = cls._build_model(self, cr)
        model_names.append(model._name)
    return self.descendants(model_names, '_inherit', '_inherits')
