Odoo Community Association

EDI Party helper

Alpha License: AGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

Technical module to retrieve party information for EDI exchanges.

It’s based on partner_identification so that the party information will include allowed ID numbers for a given exchange.

You can configure which ID number categories are allowed on the exchange type.

Important

This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. More details on development status

Table of contents

Configuration

ID numbers selection

On the exchange type form, find the field “ID categories” and set the categories allowed for that exchange type.

If not set, all the IDs of the partner will be exposed.

Usage

Via the edi.party.helper abstract model:

party = self.env["edi.party.helper"].get_party(exchange_record, partner)

Or directly, with no ORM registry lookup involved:

from odoo.addons.edi_party_helper_oca.utils import EDIParty

party = EDIParty(exchange_record=exchange_record, partner=partner)

Both return an EDIParty instance: the party data (name, identifiers, endpoint, lang) is exposed directly as attributes, alongside partner. It also behaves like a read-only dict of those same keys (party["name"], dict(party), equality against a plain dict), for backward compatibility with code expecting the old DotDict-based party data.

Both accept the same optional keyword arguments: name_field (defaults to "name") and lang_code (a language code overriding the partner’s own).

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

simahawk

This module is part of the OCA/edi-framework project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.