Repository
OCA/l10n-romania · module folder · Try on Runboat
Module version
0.1.0
Category
Tools
Folder size
0.25 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-romania
Last tracking update
2026-08-07 07:38:31
Authors
Odoo Community Association (OCA), Terrabit
Maintainers
Odoo Community Association (OCA), Terrabit
Committers
Dorin Hongu, OCA-git-bot
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits account.res_config_settings_view_form
view_move_form >account.move.form account.move form Inherits account.view_move_form
view_partner_form res.partner.form res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.