TIP: You can type at any time to perform a new search.
Search Engine Serilizer Pydantic
search_engine_serializer_pydantic · OCA/search-engine
- Repository
- OCA/search-engine · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Uncategorized
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/search-engine
- Last tracking update
- 2026-08-07 08:43:07
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Laurent Mignon (ACSONE), Sébastien BEAU, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- pydantic, typing-extensions, unidecode, requests, contextvars, pydantic>=2.0.0
- System dependencies
- None
- Required by
- oca_search_engine
- 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.
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_serializerBooleancompute='_compute_is_pydantic_serializer'store=Falsestring='Is a Serializer based on Pydantic Model?' -
record_json_schemaSerializedcompute='_compute_record_json_schema'store=Falsestring='JSON Schema of a record stored in this index (as dict)' -
record_json_schema_strCharcompute='_compute_record_json_schema'store=Falsestring='JSON Schema of a record stored in this index'
No public methods.
Loading…