OdooWiki OCA HUB

EDI Exchange Template

edi_exchange_template_oca folder_open OCA/edi-framework open_in_new
Uncategorised License: LGPL-3

Provide EDI exchange templates to control input/output records contents.

Provides following models:

  • EDI exchange output template, generates output using QWeb templates
  • [TODO] EDI exchange input template

In order to use it, the echange type must have the handler: Exchange Template Handler for EDI

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you define reusable templates that control the content of outgoing EDI exchange records, using QWeb views, reports or JSON code snippets, and link them to EDI exchange types.

This module adds a new screen, EDI Exchange Templates, under the EDI configuration menu, where you create templates that decide what an outgoing EDI file or message will contain.

Each template has a name, a code, an EDI backend type, an optional backend, an output type (for example xml or json) and a generator: - Qweb Template: pick an existing QWeb view and edit its architecture directly in the form; the output can be prettified for XML. - Report: pick a report action and render it for the related records. - JSON: build the payload with a small Python code snippet.

A code snippet area with inline documentation lets you compute extra values; for JSON the snippet must return a dictionary with a payload key. Templates can also call other templates by code.

On EDI exchange types you can now choose an Exchange Template and a list of Allowed Templates. A check prevents selecting a template that is not allowed for that type. When an exchange is generated, the system first uses the template set on the type, otherwise it looks for a matching template by backend type and allowed exchange type, preferring templates restricted to that type. If nothing is found, generation fails with a clear error. The module also adds a handler, Exchange Template Handler for EDI, which must be selected on the exchange type for this mechanism to run.

Depends on

Menus it adds

EDI Exchange Templatesmenu_edi_exchange_template_output
Models and fields (5)
  • edi.backend · extends an existing model
  • edi.exchange.type · extends an existing modeloutput_template_id (Exchange Template), output_template_allowed_ids (Allowed Templates)
  • edi.oca.template.handler · new model
  • edi.exchange.template.mixin · new modelcode, name, backend_id, code_snippet, backend_type_id (EDI Backend type), allowed_type_ids (Allowed Exchange Types), code_snippet_docs
  • edi.exchange.template.output · new modelprettify, generator, report_id, output_type, template_id (Qweb Template), template_key (Template key), template_arch (QWeb arch)

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/edi-framework.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.