Skip to content

[18.0][MIG] edi_partner_oca: Migration to 18.0 #241

Open
Ricardoalso wants to merge 10 commits intoOCA:18.0from
camptocamp:18.0-mig-edi_partner_oca_v2
Open

[18.0][MIG] edi_partner_oca: Migration to 18.0 #241
Ricardoalso wants to merge 10 commits intoOCA:18.0from
camptocamp:18.0-mig-edi_partner_oca_v2

Conversation

@Ricardoalso
Copy link
Copy Markdown
Contributor

No description provided.

@Ricardoalso Ricardoalso force-pushed the 18.0-mig-edi_partner_oca_v2 branch 2 times, most recently from a6070f4 to 29f77db Compare February 25, 2026 16:56
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

IMO edi_endpoint_oca is not required. You are adding unnnecessary requiremnts, just for adding the mixin on partner, edi_core_oca is enough.

Comment thread edi_partner_oca/__manifest__.py Outdated
"website": "https://github.com/OCA/edi-framework",
"depends": [
"contacts",
"edi_endpoint_oca",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why endpoint?

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.

Indeed, it is not needed, and I have just replaced it with edi_core_oca.
If I remember correctly, I had some strange test failures in the CI back then.

The PR is now corrected with a fixup commit; let me know when it is OK with you and I will rebase.

Thanks @etobella

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.

Okay, the same error triggered in the CI and it seems linked to dependencies load order. I will investigate

Copy link
Copy Markdown
Contributor Author

@Ricardoalso Ricardoalso Apr 14, 2026

Choose a reason for hiding this comment

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

After some moving around, I moved origin_edi_endpoint_id out of the abstract edi.exchange.consumer.mixin extension and into concrete glue modules (edi_partner_endpoint_oca and edi_sale_endpoint), then removed the old edi_endpoint_oca mixin file. This avoids global field injection and fixes the registry load-order KeyError while keeping endpoint-origin fields available where needed.

I still need to do some cleaning and commit renaming + rebases. Can I let you check the new structure proposition ?

duongtq and others added 9 commits April 14, 2026 10:11
Prevent form view traceback with missing fields edi_config + edi_has_form_config
…_oca and edi_endpoint_oca

It was created to fix the registry initialization error:
::
    KeyError: 'Field edi_endpoint_id referenced in related field definition
    res.partner.origin_edi_endpoint_id does not exist.'

By depending on both modules and using ``auto_install = True``, Odoo installs
this glue module only when both prerequisites are present, ensuring a safe
module loading order.
@Ricardoalso Ricardoalso force-pushed the 18.0-mig-edi_partner_oca_v2 branch from cf759d9 to 7abebda Compare April 14, 2026 09:43
@OCA-git-bot OCA-git-bot added mod:edi_partner_endpoint_oca Module edi_partner_endpoint_oca mod:edi_sale_endpoint Module edi_sale_endpoint mod:edi_endpoint_oca Module edi_endpoint_oca labels Apr 14, 2026
Comment thread edi_partner_endpoint_oca/models/res_partner.py
@Ricardoalso Ricardoalso force-pushed the 18.0-mig-edi_partner_oca_v2 branch from fec8e25 to 6e6b952 Compare April 14, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:edi_endpoint_oca Module edi_endpoint_oca mod:edi_partner_endpoint_oca Module edi_partner_endpoint_oca mod:edi_partner_oca Module edi_partner_oca mod:edi_sale_endpoint Module edi_sale_endpoint series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants