EDI Payload Tracking
edi_payload_tracking_oca · OCA/edi-framework
Health
70/100
fair
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.05 MB
Module directory on disk
Code analysis
0 migration notes
2 models
0 views
0 HTTP endpoints
Description
Technical module keeping, for each record, the payload last exported to a third party through EDI.
It provides:
edi.payload.output: one stored payload (JSON) per record, whatever its model;edi.payload.consumer.mixin: a mixin giving records direct access to their stored payload.
It has no functional effect on its own. Modules exporting data can use it to send only what changed since the last export.
Dependencies
- Odoo dependencies
- Python dependencies
- PyYAML, openupgradelib
- System dependencies
- None
- Required by
- edi_payload_tracking_queue_oca
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (2)-
edi_payload_get_output(self)Return the payload stored for this record, or an empty dict. -
edi_payload_set_output(self, payload)Store `payload` for this record, replacing the previous one.
New fields (3)
-
model_idMany2one → ir.modelcomodel_name='ir.model'index=Trueondelete='cascade'required=True -
payloadJsondefault=dict -
res_idIntegerindex=Truerequired=True
-
get_payload(self, record)@api.modelReturn the payload stored for `record`, or an empty dict. -
set_payload(self, record, payload)@api.modelStore `payload` for `record`, replacing the previous one. When a concurrent transaction created the payload of the same record in the meantime, raise the error `_payload_concurrent_create_error()` returns. This transaction stays usable.