Romania - EDI UBL

l10n_ro_edi_ubl
REPOSITORY
REPOSITORYOCA/l10n-romania
GIT
GIThttps://github.com/OCA/l10n-romania.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-romania/tree/13.0/l10n_ro_edi_ubl
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Terrabit
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Terrabit
COMMITTERS
COMMITTERSOCA-git-bot, Dorin Hongu
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-romania
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - l10n_ro
    - 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 (6)
XML IDNameModelTypeStatus
export_bis3_invoice export_bis3_invoice ir.ui.view qweb New
export_bis3_invoice_line export_bis3_invoice_line ir.ui.view qweb New
export_bis3_invoice_partner export_bis3_invoice_partner ir.ui.view qweb New
res_config_settings_view_form res.config.settings.view.form.inherit.l10n_ro_edi res.config.settings xpath Inherits account.res_config_settings_view_form
view_move_form >account.move.form account.move button Inherits account.view_move_form
view_partner_form res.partner.form res.partner data Inherits base.view_partner_form
Models touched (5)

New fields (0)

No new fields.

Public methods (9)
  • add_xml_in_pdf_buffer(self, buffer)
  • attach_ubl_xml_file_button(self)
  • embed_ubl_xml_in_pdf(self, pdf_content)
  • generate_invoice_ubl_xml_etree(self, version='2.1')
  • generate_ubl_xml_string(self, version='2.1')
  • get_ubl_filename(self, version='2.1')
    This method is designed to be inherited
  • get_ubl_lang(self)
  • get_ubl_version(self)
  • is_ubl_sale_invoice_posted(self)

New fields (0)

No new fields.

Public methods (10)
  • embed_xml_in_pdf(self, xml_string, xml_filename, pdf_content=None, pdf_file=None)
    @api.model
    2 possible uses: a) use the pdf_content argument, which has the binary of the PDF -> it will return the new PDF binary with the embedded XML (used for qweb-pdf reports) b) OR use the pdf_file argument, which has the full path to the original PDF file -> it will re-write this file with the new PDF (used for py3o reports, *_ubl_py3o modules in this repo)
  • get_xml_files_from_pdf(self, pdf_file)
    Returns a dict with key = filename, value = XML file obj
  • ubl_parse_address(self, address_node, ns)
    @api.model
  • ubl_parse_customer_party(self, party_node, ns)
    @api.model
  • ubl_parse_delivery(self, delivery_node, ns)
    @api.model
  • ubl_parse_delivery_details(self, delivery_node, ns)
    @api.model
  • ubl_parse_incoterm(self, delivery_term_node, ns)
  • ubl_parse_party(self, party_node, ns)
    @api.model
  • ubl_parse_product(self, line_node, ns)
  • ubl_parse_supplier_party(self, party_node, ns)
    @api.model

New fields (3)
  • l10n_ro_edi_access_token Char
    string='Access Token'
  • l10n_ro_edi_manual Boolean
    default=True string='Manual submission'
  • l10n_ro_edi_test_mode Boolean
    default=True string='Test mode'
Public methods (0)

No public methods.

New fields (3)
  • l10n_ro_edi_access_token Char
    readonly=False related='company_id.l10n_ro_edi_access_token' string='Access Token'
  • l10n_ro_edi_manual Boolean
    readonly=False related='company_id.l10n_ro_edi_manual' string='Manual submission'
  • l10n_ro_edi_test_mode Boolean
    readonly=False related='company_id.l10n_ro_edi_test_mode' string='Test mode'
Public methods (0)

No public methods.

New fields (1)
  • l10n_ro_e_invoice Boolean
    help='Enrolled in the e-invoice system' args: 'E Invoice'
Public methods (0)

No public methods.