EDI WebService Core
edi_webservice_core_oca · OCA/edi-framework
Health
75/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by20/252 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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_idfield onedi.backend. edi.webservice.send, a plainsend_model_idhandler that sends the exchange file through the backend's webservice - nocomponentdependency.
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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → webservice.backendargs: 'webservice.backend' -
webservice_endpoint_countIntegerrelated='webservice_backend_id.endpoint_count' -
webservice_endpoint_idsOne2manyreadonly=Truerelated='webservice_backend_id.endpoint_ids'string='Webservice endpoints'
-
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_idMany2onerelated='backend_id.webservice_backend_id' -
webservice_endpoint_idMany2one → webservice.endpointhelp='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_bytesBooleanhelp="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_enabledBooleancompute='_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.'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
send(self, exchange_record)
New fields (2)
-
exchange_type_countIntegercompute='_compute_exchange_type_count' -
exchange_type_idsOne2many → edi.exchange.typecomodel_name='edi.exchange.type'inverse_name='webservice_endpoint_id'string='Exchange Types'
-
action_view_exchange_types(self)