Base EDIFACT

base_edifact
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/16.0/base_edifact
VERSION
VERSION 1.6.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), PlanetaTIC, ALBA Software
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), PlanetaTIC, ALBA Software
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, duongtq, thien, trisdoan, Souheil Bejaoui, Vo Hong Thien
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - partner_identification
    - partner_identification_gln
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES pydifact
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views 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