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

Module: Endpoint

Entity: endpoint.mixin

Compute Method: _compute_request_content_schema_applicable

Inputs Method Outputs
  • request_method
  • request_content_type
applicable_types = self._get_request_content_schema_applicable_for_types()
for rec in self:
            rec.request_content_schema_applicable = (
                rec.request_method in ("POST", "PUT")
                and rec.request_content_type in applicable_types
            )

Back to entity