Repository
odoo/odoo · module folder
Module version
1.0
Category
Accounting/Localizations/EDI
Folder size
0.1 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-07 06:01:55
Authors
Odoo
Maintainers
Odoo
Committers
Odoo Translation Bot, Moens Alexandre, Anh Thao Pham (pta), Yosua Nicolaus, Dylan Kiss (dyki), Antoine Boonen, Jinane Maksoud, Antoine Dupuis, aizu-odoo, nape-odoo
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_ro_cpv_code, l10n_ro_edi_stock, l10n_ro_efactura_synchronize, l10n_ro_message_spv
Description

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
account_move_form_inherit_l10n_ro_edi account.move.form.inherit.l10n_ro_edi account.move form Inherits account.view_move_form
account_move_send_inherit_l10n_ro_edi account.move.send.form.inherit.l10n_ro_edi account.move.send form Inherits account.account_move_send_form
in_invoice_tree_inherit_l10n_ro_edi in.invoice.tree.inherit.l10n_ro_edi account.move tree Inherits account.view_in_invoice_tree
l10n_ro_edi_view_account_invoice_filter account.invoice.select.inherit.l10n.ro.edi account.move Inherits account.view_account_invoice_filter
out_credit_note_tree_inherit_l10n_ro_edi out.credit.note.tree.inherit.l10n_ro_edi account.move tree Inherits account.view_out_credit_note_tree
out_invoice_tree_inherit_l10n_ro_edi out.invoice.tree.inherit.l10n_ro_edi account.move tree Inherits account.view_out_invoice_tree
res_config_settings_form_inherit_l10n_ro_edi res.config.settings.form.inherit.l10n.ro.edi res.config.settings form Inherits account.res_config_settings_view_form
HTTP endpoints (2)
Route(s)HandlerAuthTypeMethodsFlags
/l10n_ro_edi/authorize/<int:company_id> L10nRoEdiController.authorize user http ALL
/l10n_ro_edi/callback/<int:company_id> L10nRoEdiController.callback user http ALL
Models touched (5)

New fields (3)
  • l10n_ro_edi_attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment'
  • l10n_ro_edi_document_ids One2many → l10n_ro_edi.document
    comodel_name='l10n_ro_edi.document' inverse_name='invoice_id'
  • l10n_ro_edi_state Selection
    compute='_compute_l10n_ro_edi_state' help='- Sent: Successfully sent to the SPV, waiting for validation\n - Validated: Sent & validated by the SPV\n - Error: Sending error or validation error from the SPV' selection=[('invoice_sending', 'Sent'), ('invoice_sent', 'Validated')] store=True string='E-Factura Status'
Public methods (0)

No public methods.

New fields (4)
  • l10n_ro_edi_send_checkbox Boolean
    compute='_compute_l10n_ro_edi_send_checkbox' help='Send the CIUS-RO XML to the Romanian Government via the ANAF platform' readonly=False store=True string='Send E-Factura to SPV'
  • l10n_ro_edi_send_enable Boolean
    compute='_compute_l10n_ro_edi_send_enable'
  • l10n_ro_edi_send_readonly Boolean
    compute='_compute_l10n_ro_edi_send_readonly'
  • l10n_ro_edi_warnings Char
    compute='_compute_l10n_ro_edi_warnings'
Public methods (0)

No public methods.

New fields (8)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment'
  • datetime Datetime
    default=fields.Datetime.now required=True
  • invoice_id Many2one → account.move
    comodel_name='account.move' required=True
  • key_certificate Char
  • key_loading Char
    string='E-Factura Index'
  • key_signature Char
  • message Char
  • state Selection
    help='Sent -> Successfully sent to the SPV, waiting for validation.\n Validated -> Sent & validated by the SPV.\n Error -> Sending error or validation error from the SPV.' required=True selection=[('invoice_sending', 'Sent'), ('invoice_sending_failed', 'Error'), ('invoice_sent', 'Validated')] string='E-Factura Status'
Public methods (2)
  • action_l10n_ro_edi_download_signature(self)
    Download the received successful signature XML file from E-Factura
  • action_l10n_ro_edi_fetch_status(self)
    Fetch the latest response from E-Factura about the XML sent

New fields (9)
  • l10n_ro_edi_access_expiry_date Date
    string='Access Token Expiry Date'
  • l10n_ro_edi_access_token Char
    string='Access Token'
  • l10n_ro_edi_callback_url Char
    compute='_compute_l10n_ro_edi_callback_url'
  • l10n_ro_edi_client_id Char
    string='eFactura Client ID'
  • l10n_ro_edi_client_secret Char
    string='Client Secret'
  • l10n_ro_edi_oauth_error Char
  • l10n_ro_edi_refresh_expiry_date Date
    string='Refresh Token Expiry Date'
  • l10n_ro_edi_refresh_token Char
    string='Refresh Token'
  • l10n_ro_edi_test_env Boolean
    default=True string='Use Test Environment'
Public methods (0)

No public methods.

New fields (9)
  • l10n_ro_edi_access_expiry_date Date
    readonly=False related='company_id.l10n_ro_edi_access_expiry_date'
  • l10n_ro_edi_access_token Char
    readonly=False related='company_id.l10n_ro_edi_access_token'
  • l10n_ro_edi_callback_url Char
    related='company_id.l10n_ro_edi_callback_url'
  • l10n_ro_edi_client_id Char
    readonly=False related='company_id.l10n_ro_edi_client_id'
  • l10n_ro_edi_client_secret Char
    readonly=False related='company_id.l10n_ro_edi_client_secret'
  • l10n_ro_edi_oauth_error Char
    related='company_id.l10n_ro_edi_oauth_error'
  • l10n_ro_edi_refresh_expiry_date Date
    readonly=False related='company_id.l10n_ro_edi_refresh_expiry_date'
  • l10n_ro_edi_refresh_token Char
    readonly=False related='company_id.l10n_ro_edi_refresh_token'
  • l10n_ro_edi_test_env Boolean
    readonly=False related='company_id.l10n_ro_edi_test_env'
Public methods (1)
  • button_l10n_ro_edi_generate_token(self)
    Redirects to controllers/main.py ~ `authorize` method