Skip to content
Health
70/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 19.0

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

Security findings
Grave / minor (static analysis)
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
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
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_id Many2one → ir.model
    comodel_name='ir.model' index=True ondelete='cascade' required=True
  • payload Json
    default=dict
  • res_id Integer
    index=True required=True
Public methods (2)
  • get_payload(self, record)
    @api.model
    Return the payload stored for `record`, or an empty dict.
  • set_payload(self, record, payload)
    @api.model
    Store `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.