EDI Party helper
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.
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
Contributors
Simone Orsi <simone.orsi@camptocamp.com>
Maintainers
This module is maintained by the OCA.
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:
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_edi_party_helper_oca-18.0.1.0.1.1-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_edi_party_helper_oca-18.0.1.0.1.1-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8655f94e5a9470520498823af6306edf3d91e338562d30c2312f1aa8dbed576a
|
|
| MD5 |
e625eecd417b6a730f5129e561404e9f
|
|
| BLAKE2b-256 |
b975c53fc2bc5e41e3b3f7f9701356b828bc6f00eaf1ca46a29ac2e4c08ad2b8
|