Repository
OCA/edi-framework · module folder · Try on Runboat
Module version
Category
Uncategorized
Folder size
0.1 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi-framework
Last tracking update
2026-08-13 11:13:55
Authors
Camptocamp, Odoo Community Association (OCA), ACSONE
Maintainers
Camptocamp, Odoo Community Association (OCA), ACSONE
Committers
Simone Orsi, Enric Tobella, Ricardoalso, Weblate, OCA-git-bot, oca-ci, victorvermot
Odoo dependencies
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
Python dependencies
PyYAML, openupgradelib
System dependencies
None
Required by
edi_exchange_template_party_data, edi_sale_ubl_output_oca, edi_ubl_output_base_oca
Description
Provide EDI exchange templates to control input/output records contents.

Provides following models:

1.  EDI exchange output template, generates output using QWeb templates
2.  \[TODO\] EDI exchange input template

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

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
edi_exchange_template_output_view_form edi.exchange.template.output form New
edi_exchange_template_output_view_list edi.exchange.template.output list New
edi_exchange_template_output_view_search edi.exchange.template.output search New
edi_exchange_type_view_form edi.exchange.type form Inherits edi_core_oca.edi_exchange_type_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • output_template_model(self)
    @property

New fields (7)
  • allowed_type_ids Many2many → edi.exchange.type
    column1='template_id' column2='type_id' comodel_name='edi.exchange.type' help='Types allowed to use this template.' relation='edi_exchange_template_type_rel' string='Allowed Exchange Types'
  • backend_id Many2one → edi.backend
    comodel_name='edi.backend' ondelete='cascade'
  • backend_type_id Many2one → edi.backend.type
    comodel_name='edi.backend.type' ondelete='restrict' required=True string='EDI Backend type'
  • code Char
    index=True required=True
  • code_snippet Text
  • code_snippet_docs Text
    compute='_compute_code_snippet_docs' default=<expr>
  • name Char
    required=True
Public methods (1)
  • validate(self, exchange_record)

New fields (7)
  • generator Selection
    default='qweb' required=True args: [('json', 'JSON'), ('qweb', 'Qweb Template'), ('report', 'Report')]
  • output_type Char
    required=True
  • prettify Boolean
    help='Prettify output. Works for XML output only.'
  • report_id Many2one → ir.actions.report
    comodel_name='ir.actions.report' ondelete='restrict'
  • template_arch Text
    readonly=False related='template_id.arch_db' string='QWeb arch'
  • template_id Many2one → ir.ui.view
    comodel_name='ir.ui.view' ondelete='restrict' required=False string='Qweb Template'
  • template_key Char
    related='template_id.xml_id' string='Template key'
Public methods (1)
  • exchange_generate(self, exchange_record, **kw)
    Generate output for given record using related QWeb template.

New fields (2)
  • output_template_allowed_ids Many2many → edi.exchange.template.output
    column1='type_id' column2='template_id' comodel_name='edi.exchange.template.output' help='Templates allowed to be used with this type.' relation='edi_exchange_template_type_rel' string='Allowed Templates'
  • output_template_id Many2one → edi.exchange.template.output
    comodel_name='edi.exchange.template.output' help='Template used to generate or process this type.' ondelete='restrict' required=False string='Exchange Template'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • generate(self, exchange_record)

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
148 days ago
Last activity
58 days ago
Repository
OCA/edi-framework
Pull request
[19.0][MIG] edi_exchange_template_oca: Migration to 19.0 (#250)