Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by20/25
    2 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

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

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

Description

Attach a webservice.backend to an EDI backend, and send EDI exchange files through it.

This module provides:

  • The webservice_backend_id field on edi.backend.
  • edi.webservice.send, a plain send_model_id handler that sends the exchange file through the backend's webservice - no component dependency.

edi_webservice_component_oca provides the component-based equivalent (components/send.py) - a legacy integration style, kept in its own module so installing it (and component with it) is opt-in. edi_webservice_oca is now just a deprecated umbrella depending on both, kept to preserve existing installations.

Dependencies

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

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_backend_view_form edi.backend form Inherits edi_core_oca.edi_backend_view_form
edi_exchange_type_view_form_webservice edi.exchange.type.form (webservice, in edi_webservice_core_oca) edi.exchange.type form Inherits edi_core_oca.edi_exchange_type_view_form
edi_exchange_type_view_tree_webservice edi.exchange.type.tree (webservice, in edi_webservice_core_oca) edi.exchange.type tree Inherits edi_core_oca.edi_exchange_type_view_tree
webservice_endpoint_view_form_edi webservice.endpoint.form (in edi_webservice_core_oca) webservice.endpoint form Inherits webservice_core.webservice_endpoint_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (3)
  • webservice_backend_id Many2one → webservice.backend
    args: 'webservice.backend'
  • webservice_endpoint_count Integer
    related='webservice_backend_id.endpoint_count'
  • webservice_endpoint_ids One2many
    readonly=True related='webservice_backend_id.endpoint_ids' string='Webservice endpoints'
Public methods (1)
  • action_manage_webservice_endpoints(self)
    Open the endpoints of the linked webservice backend. Same action as the webservice backend's own endpoints button.

New fields (4)
  • webservice_backend_id Many2one
    related='backend_id.webservice_backend_id'
  • webservice_endpoint_id Many2one → webservice.endpoint
    help='Webservice endpoint to call when sending through this exchange type (see `edi.webservice.send`). Extra call parameters can still be provided via the advanced YAML settings.' string='WebService Endpoint' args: 'webservice.endpoint'
  • webservice_send_as_bytes Boolean
    help="By sending as bytes, `requests` won't try to guess and/or alter the encoding of the file being sent." string='Send As Bytes'
  • webservice_send_enabled Boolean
    compute='_compute_webservice_send_enabled' help='Technical flag: whether `send_model_id` inherits from the webservice send handler (`edi.webservice.send`), directly or via a custom extension. Used to show/hide webservice-specific settings on this type.'
Public methods (0)

No public methods.

New fields (0)

No new fields.

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

New fields (2)
  • exchange_type_count Integer
    compute='_compute_exchange_type_count'
  • exchange_type_ids One2many → edi.exchange.type
    comodel_name='edi.exchange.type' inverse_name='webservice_endpoint_id' string='Exchange Types'
Public methods (1)
  • action_view_exchange_types(self)