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

Commits on Apr 29, 2024

  1. [IMP] account_edi_ubl_cii: use endpoint and EAS to retrieve partner

    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
    JulienVR committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    fb7d004 View commit details
    Browse the repository at this point in the history