Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][IMP] account_edi_ubl_cii: use endpoint and EAS to retrieve partner #163848

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 29, 2024

In saas-16.2, the peppol_endpoint and peppol_eas fields were added to the partner.

When importing an xml inheriting from EN16931 (Peppol Bis 3, A-NZ, E-FFF, NLCIUS, etc), use the peppol endpoint and eas to retrieve the correct partner, by passing a search domain to _retrieve_partner (through the domain argument).

Hence, when retrieving the partner (using _retrieve_partner), we will sequentially:

  1. search for a partner with a matching VAT

  2. if there's a domain provided, search a partner matching the domain

  3. search for a partner with a matching phone or email

  4. search for a partner with a matching name

If not partner is found, we create a new one.

opw-3815296

Forward-Port-Of: #163563
Forward-Port-Of: #159742

In saas-16.2, the peppol_endpoint and peppol_eas fields were added to
the partner.

When importing an xml inheriting from EN16931 (Peppol Bis 3, A-NZ,
E-FFF, NLCIUS, etc), use the peppol endpoint and eas to retrieve the
correct partner, by passing a search domain to `_retrieve_partner`
(through the `domain` argument).

Hence, when retrieving the partner (using `_retrieve_partner`), we will
sequentially:

1. search for a partner with a matching VAT

2. if there's a domain provided, search a partner matching the domain

3. search for a partner with a matching phone or email

4. search for a partner with a matching name

If not partner is found, we create a new one.

opw-3815296

X-original-commit: 5e8a9c7
@robodoo
Copy link
Contributor

robodoo commented Apr 29, 2024

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 29, 2024
@JulienVR
Copy link
Contributor

@fw-bot r+

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 29, 2024
robodoo pushed a commit that referenced this pull request Apr 30, 2024
In saas-16.2, the peppol_endpoint and peppol_eas fields were added to
the partner.

When importing an xml inheriting from EN16931 (Peppol Bis 3, A-NZ,
E-FFF, NLCIUS, etc), use the peppol endpoint and eas to retrieve the
correct partner, by passing a search domain to `_retrieve_partner`
(through the `domain` argument).

Hence, when retrieving the partner (using `_retrieve_partner`), we will
sequentially:

1. search for a partner with a matching VAT

2. if there's a domain provided, search a partner matching the domain

3. search for a partner with a matching phone or email

4. search for a partner with a matching name

If not partner is found, we create a new one.

opw-3815296

closes #163848

X-original-commit: 5e8a9c7
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Julien Van Roy (juvr) <juvr@odoo.com>
@robodoo robodoo closed this Apr 30, 2024
@robodoo robodoo added the 17.3 label Apr 30, 2024
@fw-bot fw-bot deleted the master-saas-16.3-ubl-cii-import-partner-juvr-wy8H-fw branch May 14, 2024 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants