Skip to content

[17.0][ADD] edi_exchange_file_db_oca - #372

Open
GuillemCForgeFlow wants to merge 1 commit into
OCA:17.0from
ForgeFlow:17.0-add-edi_exchange_file_db_oca
Open

GuillemCForgeFlow wants to merge 1 commit into
OCA:17.0from
ForgeFlow:17.0-add-edi_exchange_file_db_oca

Conversation

@GuillemCForgeFlow

Copy link
Copy Markdown

Databases are often restored without their filestore, which leaves exchange records without their files: they can no longer be inspected, reprocessed or replayed. This module keeps the content of exchange_file in the database (ir_attachment.db_datas) instead; the field itself is unchanged.

  • Enabled for every exchange type on install; each type can opt out or set a size limit, with a global fallback in the system parameter edi_exchange_file_db_oca.max_size_kb.
  • Existing files are moved to the database on install, after a checksum check.
  • New File Content tab on the exchange record form: JSON is indented, JSON and XML are highlighted, and binary or large files show a notice instead.

cc @ForgeFlow

Databases are often restored without their filestore, which leaves every
exchange record without its file, so exchanges can no longer be
inspected, reprocessed or replayed. Keeping the content of the exchange
file attachments in the database fixes that at a small cost, since EDI
payloads are usually tiny, and the exchange record form now shows that
content.
@OCA-git-bot OCA-git-bot added series:17.0 mod:edi_exchange_file_db_oca Module edi_exchange_file_db_oca labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:edi_exchange_file_db_oca Module edi_exchange_file_db_oca series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants