Repository
OCA/edi · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi
Last tracking update
2026-08-07 09:06:21
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Maksym Yankin, OCA-git-bot, oca-ci
Odoo dependencies
OCA/community-data-files:
OCA/edi:
OCA/reporting-engine:
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds support for UBL, the [Universal Business Language
(UBL)](http://ubl.xml.org/) standard, on purchase orders. The UBL 2.1
standard became the [ISO/IEC
19845](http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370)
standard in December 2015 (cf the [official
announce](http://www.prweb.com/releases/2016/01/prweb13186919.htm)).

With this module, when you generate the purchase order or RFQ report:

- on a draft/RFQ/Bid Received purchase order, the PDF file will have an
  embedded XML *Request For Quotation* file compliant with the UBL 2.1
  or 2.0 standard.
- on an approved purchase order, the PDF file will have an embedded XML
  *Order* file compliant with the UBL 2.1 or 2.0 standard.

If your supplier has Odoo and has installed the module
*sale_order_import_ubl*, he will be able to import the PDF file and it
will automatically create the quotation/sale order.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (13)
  • add_xml_in_pdf_buffer(self, buffer)
  • embed_ubl_xml_in_pdf(self, pdf_content, pdf_file=None)
  • generate_order_ubl_xml_etree(self, version='2.1')
  • generate_rfq_ubl_xml_etree(self, version='2.1')
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    Provide UBL Xml string with no check According to your use check this string integrity with _ubl_check_xml_schema() method
  • get_delivery_partner(self)
  • get_document_name(self, doc_type)
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    This method is designed to be inherited
  • get_ubl_lang(self)
  • get_ubl_purchase_order_doc_type(self)
  • get_ubl_version(self)
  • get_ubl_xml_etree(self, doc_type, version='2.1')

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…