Skip to content
Health
60/100
fair
  • Security22/25
    1 minor finding
  • Activity0/25
    Last human commit 134 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 6.1

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.21 MB
Module directory on disk
Code analysis 10 migration notes 1 model 1 view 2 HTTP endpoints

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.

Dependencies

Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
account, opl_all

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…