EDI Exchange Deduplicate Payload
Glue between edi_exchange_deduplicate_oca and edi_payload_tracking_oca.
It adds the Deduplicate unchanged payloads option to output exchange types: an exchange whose payload holds nothing new compared with the payload already exported for its record is not sent, and is marked as obsolete instead. The payload of a record deleted meanwhile is not sent either.
Table of contents
Use Cases / Context
Integrations sending only what changed since the last export (see edi_payload_tracking_oca) still include some keys in every payload, e.g. the identifiers the partner needs. An export triggered by a change that does not affect the payload then carries nothing new. Left pending, such an exchange would be queued again by the output cron, forever: marking it as obsolete, as edi_exchange_deduplicate_oca does for superseded exchanges, ends it.
Usage
Tick Deduplicate unchanged payloads on the output exchange type. The model of the exported records must inherit edi.payload.consumer.mixin, and the send handler must store the exported payload after each successful send (record.edi_payload_set_output()).
Before sending, the payload of the exchange (a JSON object) is compared with the stored one through record._edi_payload_has_changes(payload): by default, it has changes when nothing was exported yet, or when a key holds a value different from the stored one. Override this method to refine the comparison for a model.
Records of models that do not track their payload are sent as usual.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Akim Juillerat <akim.juillerat@camptocamp.com>
Iván Todorovich <ivan.todorovich@camptocamp.com>
Simone Orsi <simone.orsi@camptocamp.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/edi-framework project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Metadata
Release files for odoo-addon-edi-exchange-deduplicate-payload-oca 19.0.1.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_edi_exchange_deduplicate_payload_oca-19.0.1.0.0.2-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_edi_exchange_deduplicate_payload_oca-19.0.1.0.0.2-py3-none-any.whl |
Release files / odoo_addon_edi_exchange_deduplicate_payload_oca-19.0.1.0.0.2-py3-none-any.whl
| Download URL | odoo_addon_edi_exchange_deduplicate_payload_oca-19.0.1.0.0.2-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b0a46f83e5ba12db6e5ecc5b54d17f08b55788478d1cd9e0e892ed026a439f5
|
|
BLAKE2b-256 checksum How to use checksums |
39f7ab951143030f1293fdda268c53f0c99b8cca1a83119ed881c79841fe7d7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for odoo-addon-edi-exchange-deduplicate-payload-oca 19.0.1.0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.