Skip to content

[19.0] [IMP] edi_endpoint_oca: exec_mode=create_exchange_record#272

Open
ivantodorovich wants to merge 1 commit intoOCA:19.0from
camptocamp:19.0-imp-endpoint-create-record
Open

[19.0] [IMP] edi_endpoint_oca: exec_mode=create_exchange_record#272
ivantodorovich wants to merge 1 commit intoOCA:19.0from
camptocamp:19.0-imp-endpoint-create-record

Conversation

@ivantodorovich
Copy link
Copy Markdown
Contributor

Added a new default exec_mode for EDI exchange records: create_exchange_record

This mode will dump the request body as-is into the exchange record content for a later processing.

@OCA-git-bot OCA-git-bot added series:19.0 mod:edi_endpoint_oca Module edi_endpoint_oca labels May 6, 2026
@ivantodorovich ivantodorovich force-pushed the 19.0-imp-endpoint-create-record branch from f7ec47f to f48440d Compare May 6, 2026 16:36
@ivantodorovich ivantodorovich marked this pull request as ready for review May 6, 2026 16:37
@ivantodorovich ivantodorovich force-pushed the 19.0-imp-endpoint-create-record branch from f48440d to 345f3b3 Compare May 6, 2026 17:29
"""
record = self.create_exchange_record(
file_content=request.httprequest.get_data(),
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simahawk shouldn't create_exchange_record set the edi_exchange_state to input_received if file_content is provided?
or perhaps it should immediately call exchange_receive in such case?

To me it seems obvious, I don't get why we would want it in a separate step given the file_content is already set.

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