Skip to content
Health
83/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity18/25
    In 3 Odoo series since 16.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.07 MB
Module directory on disk
Code analysis 0 migration notes 3 models 1 view 0 HTTP endpoints

Description

This module adds options for deduplication of exchange records on the exchange type:

  • deduplicate_on_exchange: when a record is created, check if older records for the same record are still pending. If so, mark them as obsolete, so only the freshest one is sent or processed. Records without a related record match on the exchange type alone, which suits full-dump payloads where only the latest one matters.
  • delete_obsolete_records: Delete records marked as obsolete.

Dependencies

Odoo dependencies
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
Python dependencies
PyYAML, openupgradelib
System dependencies
None
Required by
edi_exchange_deduplicate_payload_oca

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
edi_exchange_type_view_form_inherit edi.exchange.type.form.inherit edi.exchange.type form Inherits edi_core_oca.edi_exchange_type_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • block_obsolescence Boolean
    default=False help='Flag record that can never be marked as obsolete'
  • edi_exchange_state Selection
    ondelete={'obsolete': 'cascade'} selection_add=[('obsolete', 'Obsolete')]
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (4)
  • deduplicate_on_exchange Boolean
    default=False help='When an exchange record is created, mark the older ones for the same record that are still pending as obsolete, so only the freshest one is sent or processed. Records without a related record match on the exchange type alone, which suits full-dump payloads where only the latest one matters.' string='Deduplicate on Exchange'
  • deduplicate_on_exchange_record_status Char
    default='new,output_pending,input_pending,input_received' groups='base.group_no_one'
  • deduplicate_on_send Boolean
    compute='_compute_deduplicate_on_send' help="Deprecated: alias of 'Deduplicate on Exchange'." inverse='_inverse_deduplicate_on_send' search='_search_deduplicate_on_send' string='Deduplicate on Send'
  • delete_obsolete_records Boolean
    default=True help='Delete records marked as obsolete.' string='Delete obsolete records'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…