Skip to content

[18.0][IMP] edi_storage_oca: post-process input file via conf#280

Open
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-edi_storage_oca-edi_configuration_move
Open

[18.0][IMP] edi_storage_oca: post-process input file via conf#280
ArnauCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-edi_storage_oca-edi_configuration_move

Conversation

@ArnauCForgeFlow
Copy link
Copy Markdown

Reintroduce the event-driven file move "on_edi_exchange_done" / "on_edi_exchange_error" that was lost when the "edi_component_oca" dependency was dropped, using the global edi.configuration mechanism added to "edi_core_oca" in #275:

  • Add _move_file on fs.storage: looks up the file in the source directory and schedules an fs.move via a post-commit hook.

  • Add _storage_on_edi_exchange_done / _storage_on_edi_exchange_error on edi.backend, mirroring the original listener behaviour.

  • Ship two default global edi.configuration records bound to the matching triggers. They are inactive by default and require an explicit backend_id before being enabled.

  • Depends on [18.0][IMP] edi_core: add global events handling via edi.conf #275

@simahawk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants