OdooWiki OCA HUB

Endpoint JSONifier

endpoint_jsonifier folder_open OCA/web-api open_in_new
Uncategorized License: LGPL-3

This addon allows configuring an exporter for endpoints to be used in code snippets.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an Export tab on endpoint records where you can pick an export configuration (exporter) to be used by JSONifier parsers. This lets endpoints reuse an existing export definition when producing JSON output.

This module extends the endpoint configuration screens so that each endpoint can be linked to an export definition.

Where it appears in Odoo: - On the endpoint form (model endpoint.endpoint), a new "Export" page is added inside the notebook (the tabbed section of the form). - Inside that page there is a single field, "exporter_id", where you select an existing export record (ir.exports).

What it changes: - The shared endpoint mixin (endpoint.mixin) gains one new field, exporter_id, a many-to-one link to ir.exports. Because it is defined on the mixin, any model that inherits that mixin also gets the field. - The field is purely a configuration link: the code does not add any automatic computation, validation, default value, scheduled action, email or report. It simply stores which export definition belongs to the endpoint.

What it touches: - endpoint.mixin (extended, not replaced) and therefore endpoint.endpoint. - ir.exports, the standard Odoo export configuration model, which is referenced by the new field.

The module depends on endpoint and jsonifier, so it is meant to be used together with those: the selected export is what the JSONifier parsers can use when serialising data for the endpoint. No other business rules are visible in the provided code.

Models and fields (1)
  • endpoint.mixin · extends an existing modelexporter_id

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

This module by itself contains no business logic, but its configuration can be used to manage endpoints' data export.

For example:

parser = endpoint.export_id.get_json_parser()
prod_domain = [("sale_ok", "=", True)]
prod_data = env["product.product"].search(prod_domain).jsonify(parser)
resp = Response(json.dumps(prod_data), content_type="application/json", status=200)
result = dict(response=resp)

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.