Skip to content

[19.0][MIG] edi_endpoint_oca: Migration to V19#262

Merged
OCA-git-bot merged 37 commits intoOCA:19.0from
camptocamp:19.0-mig-edi_endpoint_oca
May 4, 2026
Merged

[19.0][MIG] edi_endpoint_oca: Migration to V19#262
OCA-git-bot merged 37 commits intoOCA:19.0from
camptocamp:19.0-mig-edi_endpoint_oca

Conversation

@yankinmax
Copy link
Copy Markdown
Contributor

@yankinmax yankinmax commented Apr 6, 2026

Standard migration.

Replaces #256

Depends on:

This PR is opened to speed up migration to 19.0.

@yankinmax yankinmax force-pushed the 19.0-mig-edi_endpoint_oca branch 5 times, most recently from 6cc60cd to 591bd6e Compare April 6, 2026 14:52
Copy link
Copy Markdown
Contributor

@vvrossem vvrossem left a comment

Choose a reason for hiding this comment

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

Migration commit LG


@unittest.skipIf(os.getenv("SKIP_HTTP_CASE"), "EDIEndpointHttpCase skipped")
class EDIEndpointHttpCase(HttpCase):
class EDIEndpointHttpCase(HttpCase, CommonEDIEndpoint):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is mixing 2 different base test classes. We might have weird behaviors.
Options:

  1. import setup methods and use them directly in setUpClass
  2. do not make CommonEDIEndpoint inherit from TransactionCase and make it a bare mixin class w/ a _setup_endpoint_env general setup method that you can call here in setUpClass

@OCA-git-bot OCA-git-bot added series:19.0 mod:edi_endpoint_oca Module edi_endpoint_oca and removed approved labels Apr 14, 2026
@yankinmax yankinmax force-pushed the 19.0-mig-edi_endpoint_oca branch from 4cec69a to d5ca3f0 Compare April 20, 2026 11:18
@yankinmax
Copy link
Copy Markdown
Contributor Author

yankinmax commented Apr 20, 2026

Hello @simahawk
I suppose I've changed the code the way you suggest.
The tests are failing for some reason I can't get.
Locally no issue

@simahawk
Copy link
Copy Markdown
Contributor

probably because of OCA/oca-addons-repo-template#344
we need to update the repo/branch

@simahawk
Copy link
Copy Markdown
Contributor

/ocabot migration edi_endpoint_oca

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Apr 20, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 20, 2026
22 tasks
@yankinmax yankinmax force-pushed the 19.0-mig-edi_endpoint_oca branch from d5ca3f0 to eb1f73f Compare April 20, 2026 15:04
OCA-git-bot and others added 18 commits April 29, 2026 14:13
Moved from OCA/edi repository
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/
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.
@yankinmax yankinmax force-pushed the 19.0-mig-edi_endpoint_oca branch from eb1f73f to 625586d Compare April 29, 2026 11:14
@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @OCA/edi-framework-maintainers can you pls take a look and possibly trigger merge?

@cyrilmanuel
Copy link
Copy Markdown

Hi the Depend pr closed is wrong on the decription :

it was superseeded and merge --> OCA/server-tools#3606

at this point, The PR can be merge, all dependencies are merge !

@simahawk could you update your review and trigger the merge please :)

@simahawk
Copy link
Copy Markdown
Contributor

simahawk commented May 4, 2026

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-262-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b1419a3 into OCA:19.0 May 4, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at be0aee0. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.