Purchase Order UBL

purchase_order_ubl
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/19.0/purchase_order_ubl
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl_generate
    - base_ubl
OCA/reporting-engine:
    - pdf_xml_attachment
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.

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')
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/18.0/purchase_order_ubl
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSOCA-git-bot, Simone Orsi, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl_generate
    - base_ubl
OCA/reporting-engine:
    - pdf_xml_attachment
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.

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')
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/16.0/purchase_order_ubl
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Weblate, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
    - pdf_helper
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • is_ubl_xml_to_embed_in_purchase_order(self)

New fields (0)

No new fields.

Public methods (14)
  • 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_order_states(self)
    @api.model
  • 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')
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/14.0/purchase_order_ubl
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAlexis de Lattre, Luc De Meyer, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Simone Orsi, Robin Conjour
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
    - pdf_helper
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES pypdf>=3.1.0,<5.0
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • is_ubl_xml_to_embed_in_purchase_order(self)
  • postprocess_pdf_report(self, record, buffer)

New fields (0)

No new fields.

Public methods (14)
  • 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_order_states(self)
    @api.model
  • 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')
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/13.0/purchase_order_ubl
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAndrea, David Beal, oca-travis, OCA-git-bot, Simone Orsi
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • is_ubl_xml_to_embed_in_purchase_order(self)
  • postprocess_pdf_report(self, record, buffer)
  • render_qweb_pdf(self, res_ids=None, data=None)
    This is only necessary when tests are enabled. It forces the creation of pdf instead of html.

New fields (0)

No new fields.

Public methods (14)
  • add_xml_in_pdf_buffer(self, buffer)
  • embed_ubl_xml_in_pdf(self, pdf_content)
  • 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_order_states(self)
    @api.model
  • 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')
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/12.0/purchase_order_ubl
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAndrea, Miquel Raïch, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views 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 (10)
  • embed_ubl_xml_in_pdf(self, pdf_content=None, pdf_file=None)
    @api.multi
  • generate_order_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_rfq_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    @api.multi
  • get_delivery_partner(self)
    @api.multi
  • get_order_states(self)
    @api.model
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    @api.multi
    This method is designed to be inherited
  • get_ubl_lang(self)
    @api.multi
  • get_ubl_version(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/11.0/purchase_order_ubl
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAndrea, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/edi/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - product_uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - account
    - analytic
    - portal
    - http_routing
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • render_qweb_pdf(self, res_ids=None, data=None)
    @api.multi
    We go through that method when the PDF is generated for the 1st time and also when it is read from the attachment. This method is specific to QWeb

New fields (0)

No new fields.

Public methods (10)
  • embed_ubl_xml_in_pdf(self, pdf_content=None, pdf_file=None)
    @api.multi
  • generate_order_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_rfq_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    @api.multi
  • get_delivery_partner(self)
    @api.multi
  • get_order_states(self)
    @api.model
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    @api.multi
    This method is designed to be inherited
  • get_ubl_lang(self)
    @api.multi
  • get_ubl_version(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/10.0/purchase_order_ubl
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAlexis de Lattre, GitHub, OCA Transbot, David Beal, oca-travis, OCA-git-bot, luc.demeyer@noviat.com
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - product_uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (10)
  • embed_ubl_xml_in_pdf(self, pdf_content=None, pdf_file=None)
    @api.multi
  • generate_order_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_rfq_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    @api.multi
  • get_delivery_partner(self)
    @api.multi
  • get_order_states(self)
    @api.model
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    @api.multi
    This method is designed to be inherited
  • get_ubl_lang(self)
    @api.multi
  • get_ubl_version(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • get_pdf(self, docids, report_name, html=None, data=None)
    @api.model
    We go through that method when the PDF is generated for the 1st time and also when it is read from the attachment. This method is specific to QWeb
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/9.0/purchase_order_ubl
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSHolger Brunn
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - product_uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
    - web_tip
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (10)
  • embed_ubl_xml_in_pdf(self, pdf_content)
    @api.multi
  • generate_order_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_rfq_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    @api.multi
  • get_delivery_partner(self)
    @api.multi
  • get_order_states(self)
    @api.model
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    @api.multi
    This method is designed to be inherited
  • get_ubl_lang(self)
    @api.multi
  • get_ubl_version(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • get_pdf(self, cr, uid, ids, report_name, html=None, data=None, context=None)
    @api.v7
    We go through that method when the PDF is generated for the 1st time and also when it is read from the attachment. This method is specific to QWeb
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/8.0/purchase_order_ubl
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAlexis de Lattre, Pedro M. Baeza, GitHub, Adrien Peiffer (ACSONE), David Beal, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - product_uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - account
    - analytic
    - edi
    - email_template
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (13)
  • embed_ubl_xml_in_pdf(self, pdf_content)
    @api.multi
  • generate_order_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_rfq_ubl_xml_etree(self, version='2.1')
    @api.multi
  • generate_ubl_xml_string(self, doc_type, version='2.1')
    @api.multi
    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)
    @api.multi
  • get_document_name(self, doc_type)
  • get_order_states(self)
    @api.model
  • get_rfq_states(self)
    @api.model
  • get_ubl_filename(self, doc_type, version='2.1')
    @api.multi
    This method is designed to be inherited
  • get_ubl_lang(self)
    @api.multi
  • get_ubl_purchase_order_doc_type(self)
  • get_ubl_version(self)
    @api.multi
  • get_ubl_xml_etree(self, doc_type, version='2.1')
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • get_pdf(self, docids, report_name, html=None, data=None)
    @api.model
    We go through that method when the PDF is generated for the 1st time and also when it is read from the attachment. This method is specific to QWeb