Skip to content

[19.0][MIG] edi_endpoint_oca#256

Draft
JordiMForgeFlow wants to merge 62 commits intoOCA:19.0from
ForgeFlow:19.0-mig-edi_endpoint_oca
Draft

[19.0][MIG] edi_endpoint_oca#256
JordiMForgeFlow wants to merge 62 commits intoOCA:19.0from
ForgeFlow:19.0-mig-edi_endpoint_oca

Conversation

@JordiMForgeFlow
Copy link
Copy Markdown
Contributor

No description provided.

simahawk and others added 30 commits March 30, 2026 15:55
Block archiving of backends if they have active endpoints exposed.
* more efficient w/ read_group
* consider only active records explicitly
I don't know why but  when test_edi_endpoint runs before these tests
the rollback of the exception catched within the test `test_archive_check`
make the controller lookup fail.
Since the whole routing registry machinery is going to be refactored
in OCA/edi#633
let's survive w/ this forced registration for now.
Former version of `endpoint_route_handler` had a major flaw:

routing rule registry was not properly shared across workers
forcing us to restart the instance to make sure all envs were inline w/
it.

This change adapts edi_endpoint_oca to the new version which contains
some refactoring.
It's very handy to know which endpoint generated a record.
oca-ci and others added 30 commits March 30, 2026 15:55
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-framework-16.0/edi-framework-16.0-edi_endpoint_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-16-0/edi-framework-16-0-edi_endpoint_oca/
The new mixin view won't be affected by weird extensions.

Requires OCA/web-api#56
Solves conflict w/ OCA/web-api-contrib#1
Currently translated at 1.9% (1 of 51 strings)

Translation: edi-framework-16.0/edi-framework-16.0-edi_endpoint_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-16-0/edi-framework-16-0-edi_endpoint_oca/it/
Currently translated at 100.0% (51 of 51 strings)

Translation: edi-framework-16.0/edi-framework-16.0-edi_endpoint_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-16-0/edi-framework-16-0-edi_endpoint_oca/it/
edi.endpoint views must be independent
that's why primary mode is used.
endpoint.endpoint views might be polluted
by other modules: this change ensures they are isolated.

Depends on  OCA/web-api#87
If record field value is already True, impossible to sync the registry
A new route parameter has been introduced and for existing endpoints to work OOTB we must resync.
Currently translated at 100.0% (51 of 51 strings)

Translation: edi-framework-18.0/edi-framework-18.0-edi_endpoint_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_endpoint_oca/it/
Setting the file content after creating the record
might lead to errors when the exchange type is has quick_exec enabled.
That's because the backend will try to process the file immediately on create
but there's no file content yet.

Just populate the file content right away.
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.

10 participants