Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Storage Backend

Entity: storage.backend

Compute Method: _compute_has_validation

Inputs Method Outputs
for rec in self:
            if not rec.backend_type:
                # with server_env
                # this code can be triggered
                # before a backend_type has been set
                # get_adapter() can't work without backend_type
                rec.has_validation = False
                continue
            adapter = rec._get_adapter()
            rec.has_validation = hasattr(adapter, "validate_config")

Back to entity