Skip to content

[18.0][IMP] edi_core_oca: add listener action#232

Open
ArnauCForgeFlow wants to merge 2 commits intoOCA:18.0from
ForgeFlow:18.0-imp-edi_core_oca-move_listener
Open

[18.0][IMP] edi_core_oca: add listener action#232
ArnauCForgeFlow wants to merge 2 commits intoOCA:18.0from
ForgeFlow:18.0-imp-edi_core_oca-move_listener

Conversation

@ArnauCForgeFlow
Copy link

@ArnauCForgeFlow ArnauCForgeFlow commented Feb 12, 2026

Move _trigger_edi_event_make_name method to edi_core_oca module in order to make the listener usable without requiring the edi_component_oca module

@OCA-git-bot
Copy link
Contributor

Hi @simahawk, @etobella,
some modules you are maintaining are being modified, check this out!

@ArnauCForgeFlow ArnauCForgeFlow force-pushed the 18.0-imp-edi_core_oca-move_listener branch from 0bc4d2e to 7a14077 Compare February 13, 2026 10:32
@ArnauCForgeFlow
Copy link
Author

@simahawk Thanks for the review!

So, basically, your suggestion is moving the helper method _trigger_edi_event_make_name from the component module to the core, and then simply calling the _trigger_edi_event hook from the other modules?

@simahawk
Copy link
Contributor

@simahawk Thanks for the review!

So, basically, your suggestion is moving the helper method _trigger_edi_event_make_name from the component module to the core, and then simply calling the _trigger_edi_event hook from the other modules?

yes. And we should move the hook to the consumer mixin so that the logic won't be put into generic models like exc record.

@ArnauCForgeFlow
Copy link
Author

ArnauCForgeFlow commented Feb 19, 2026

@simahawk Thanks for the review!
So, basically, your suggestion is moving the helper method _trigger_edi_event_make_name from the component module to the core, and then simply calling the _trigger_edi_event hook from the other modules?

yes. And we should move the hook to the consumer mixin so that the logic won't be put into generic models like exc record.

The problem with moving the hook to the consumer mixin is that for input exchanges that fail early, there is no record_id yet. For example, in edi_storage_oca, even if the process fails, we still need to execute the hook to move the file from 'pending' directory to 'error' directory. Any idea on how to handle this?

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments