Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 14.0

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

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 0 migration notes 5 models 4 views 0 HTTP endpoints

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

Dependencies

Odoo dependencies
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
Python dependencies
PyYAML, openupgradelib
System dependencies
None
Required by
None

Code analysis

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

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…

Loading…