Repository
odoo/odoo · module folder
Module version
1.0
Category
Tools
Folder size
0.21 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://www.odoo.com/page/api
Last tracking update
2026-08-07 04:53:25
Authors
OpenERP SA
Maintainers
OpenERP SA
Committers
Quentin (OpenERP), Antony Lesuisse, niv-openerp, Vo Minh Thu, Olivier Dony, Launchpad Translations on behalf of openerp, Fabien Pinckaers, Raphael Collet, Fabien Meghazi, Christophe Simonis, Thibault Delavallée, Martin Trigaux, Amit Bhavsar (Open ERP), Frédéric van der Essen, Odoo Translation Bot, Christophe Matthieu, Denis Ledoux, ggh-openerp, Cedric Snauwaert, Richard Mathot
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
account, opl_all
Description
Provides a common EDI platform that other Applications can use.
===============================================================

OpenERP specifies a generic EDI format for exchanging business documents between 
different systems, and provides generic mechanisms to import and export them.

More details about OpenERP's EDI format may be found in the technical OpenERP 
documentation at http://doc.openerp.com.
    

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_backend edi assets ir.ui.view qweb Inherits web.assets_backend
HTTP endpoints (2)
Route(s)HandlerAuthTypeMethodsFlags
/edi/import_edi_url EDI.import_edi_url none json ALL
/edi/import_url EDI.import_url none http ALL
Models touched (1)

New fields (0)

No new fields.

Public methods (6)
  • deserialize(self, edi_documents_string)
    Return deserialized version of the given EDI Document string. :param str|unicode edi_documents_string: UTF-8 string (or unicode) containing JSON-serialized EDI document(s) :return: Python object representing the EDI document(s) (usually a list of dicts)
  • generate_edi(self, cr, uid, records, context=None)
    Generates a final EDI document containing the EDI serialization of the given records, which should all be instances of a Model that has the :meth:`~.edi` mixin. The document is not saved in the database. :param list(browse_record) records: records to export as EDI :return: UTF-8 encoded string containing the serialized records
  • import_edi(self, cr, uid, edi_document=None, edi_url=None, context=None)
    Import a JSON serialized EDI Document string into the system, first retrieving it from the given ``edi_url`` if provided. :param str|unicode edi: UTF-8 string or unicode containing JSON-serialized EDI Document to import. Must not be provided if ``edi_url`` is given. :param str|unicode edi_url: URL where the EDI document (same format as ``edi``) may be retrieved, without authentication.
  • load_edi(self, cr, uid, edi_documents, context=None)
    Import the given EDI document structures into the system, using :meth:`~.import_edi`. :param edi_documents: list of Python dicts containing the deserialized version of EDI documents :return: list of (model, id, action) tuple containing the model and database ID of all records that were imported in the system, plus a suggested action definition dict for displaying each document.
  • new_edi_token(self, cr, uid, record)
    Return a new, random unique token to identify this model record, and to be used as token when exporting it as an EDI document. :param browse_record record: model record for which a token is needed
  • serialize(self, edi_documents)
    Serialize the given EDI document structures (Python dicts holding EDI data), using JSON serialization. :param [dict] edi_documents: list of EDI document structures to serialize :return: UTF-8 encoded string containing the serialized document

Loading…

Loading…