Skip to content
Health
72/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
6 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

This module is a technical module that define a new abstract class named PydandicModelSerializer that inherit from odoo.addons.connector_search_engine.tools.serializer.ModelSerializer

This new class define a new abstract method get_model_class. This method is used by the index to get the Pydantic model class to use to generate the json schema.

On the index form, if the serializer is a PydanticModelSerializer, a field is displayed to display the related json schema and therefore provide documentation about the fields exported and their characteristics.

Dependencies

Odoo dependencies
OCA/queue:
OCA/rest-framework:
OCA/search-engine:
OCA/server-env:
OCA/server-tools:
odoo/odoo:
- web
- bus
Python dependencies
pydantic, typing-extensions, unidecode, requests, contextvars, pydantic>=2.0.0
System dependencies
None
Required by
oca_search_engine

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
se_index_form_view se.index.form se.index form Inherits connector_search_engine.se_index_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (3)
  • is_pydantic_serializer Boolean
    compute='_compute_is_pydantic_serializer' store=False string='Is a Serializer based on Pydantic Model?'
  • record_json_schema Serialized
    compute='_compute_record_json_schema' store=False string='JSON Schema of a record stored in this index (as dict)'
  • record_json_schema_str Char
    compute='_compute_record_json_schema' store=False string='JSON Schema of a record stored in this index'
Public methods (0)

No public methods.

Loading…