Repository
OCA/edi · module folder · Try on Runboat
Module version
1.6.0
Category
Tools
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi
Last tracking update
2026-08-07 08:09:21
Authors
Odoo Community Association (OCA), PlanetaTIC, ALBA Software
Maintainers
Odoo Community Association (OCA), PlanetaTIC, ALBA Software
Committers
Weblate, OCA-git-bot, oca-ci, duongtq, thien, trisdoan, Souheil Bejaoui, Vo Hong Thien
Odoo dependencies
Python dependencies
pydifact
System dependencies
None
Required by
account_invoice_edifact, edi_edifact_oca, sale_order_import_edifact
Description

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (0)

No new fields.

Public methods (12)
  • create_interchange(self, sender, recipient, control_ref, syntax_identifier)
    Create an interchange (started by UNB segment, ended by UNZ segment) :param list sender: Identification of the sender of the interchange. example: ["40410", "14"] - 40410: Identification of the sender of the interchange - 14: EAN (European Article Numbering Association) :param list recipient: Identification of the recipient of the interchange. example: ["40411", "14"] :param str control_ref: Unique reference assigned by the sender to an interchange. example: "10" :param list syntax_identifier: Identification of the agency controlling the syntax and indication of syntax level, plus the syntax version number. example: ["UNOC", "3"] :return: Interchange object representing the created interchange. :rtype: Interchange
  • create_segment(self, *elements)
    @api.model
  • map2odoo_address(self, seg)
    @api.model
    DP. Party to which goods should be delivered, if not identical with consignee. NAD+DP+5550534000086::9+++++++DE' NAD segment: ['DP', ['5550534022101', '', '9'], '', '', '', '', '', '', 'ES'] IV. Party to whom an invoice is issued. NAD+IV+5450534005838::9++AMAZON EU SARL:NIEDERLASSUNG DEUTSCHLAND+MARCEL-BREUER-STR. 12+MUENCHEN++80807+DE :returns: { 'type': 'partner': {'gln':''} 'address': {...} }
  • map2odoo_currency(self, seg)
    @api.model
    ['2', 'EUR', '9']
  • map2odoo_date(self, dt)
    @api.model
  • map2odoo_description(self, seg)
    @api.model
    'IMD' EDI segment: ['F', '79', ['', '', '', 'Description']] F: Label 79: Other description
  • map2odoo_partner(self, seg)
    @api.model
    BY. Party to which merchandise is sold. NAD+BY+5550534000017::9' NAD segment: ['BY', ['5550534001649', '', '9']] SU. Party which manufactures or otherwise has possession of goods,and consigns or makes them available in trade. NAD+SU+<Supplier GLN>::9'
  • map2odoo_product(self, seg, pia=None)
    @api.model
    :seg: LIN segment ['1', '', ['8885583503464', 'EN']] EN. International Article Numbering Association (EAN) UP. UPC (Universal product code) SRV. GTIN :pia: PIA segment ['5', ['1276', 'SA', '', '9']] SA. Supplier's Article Number
  • map2odoo_qty(self, seg)
    @api.model
    'QTY' EDI segment: [['21', '2']] '21'. Ordered quantity
  • map2odoo_unit_price(self, seg=None)
    @api.model
    'PRI' EDI segment: [['AAA', '19.75']] Price qualifier: * 'AAA'. Calculation net * 'AAB'. Calculation gross
  • pydifact_import(self, names)
    @api.model
  • pydifact_obj(self, docu)
    @api.model
Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
126 days ago
Last activity
63 days ago
Repository
OCA/edi
Pull request
[18.0][MIG] base_edifact: Migration to 18.0 (#1324)