Romania - E-invoicing
l10n_ro_edi · odoo/odoo
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 4 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.73 MB
Module directory on disk
Code analysis
0 migration notes
11 models
8 views
2 HTTP endpoints
Description
E-invoice implementation for Romania
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_move_fetch_invoices_wizard_form |
l10n_ro_edi.account_move_fetch_invoices.wizard.form | l10n_ro_edi.account_move_fetch_invoices.wizard | form | New |
account_move_form_inherit_l10n_ro_edi |
account.move.form.inherit.l10n_ro_edi | account.move | form | Inherits account.view_move_form |
in_invoice_tree_inherit_l10n_ro_edi |
in.invoice.list.inherit.l10n_ro_edi | account.move | list | 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.list.inherit.l10n_ro_edi | account.move | list | Inherits account.view_out_credit_note_tree |
out_invoice_tree_inherit_l10n_ro_edi |
out.invoice.list.inherit.l10n_ro_edi | account.move | list | Inherits account.view_out_invoice_tree |
product_template_form_inherit |
product.template.form.inherit.l10n_ro_cpv_code | product.template | form | Inherits product.product_template_form_view |
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/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 11
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
l10n_ro_edi_document_idsOne2many → l10n_ro_edi.documentcomodel_name='l10n_ro_edi.document'inverse_name='invoice_id' -
l10n_ro_edi_indexCharcopy=Falsereadonly=Truestring='E-Factura Index' -
l10n_ro_edi_stateSelectioncompute='_compute_l10n_ro_edi_state'help='- Not indexed: Invoice index was not received on time due to a server timeout\n - Sent: Successfully sent to the SPV, waiting for validation\n - Validated: Sent & validated by the SPV\n - Refused: Validation error from the SPV\n 'selection=[('invoice_not_indexed', 'Not indexed'), ('invoice_sent', 'Sent'), ('invoice_refused', 'Refused'), ('invoice_validated', 'Validated')]store=Truestring='E-Factura Status'
-
action_l10n_ro_edi_fetch_invoices(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
codeCharrequired=Truestring='Code' -
nameCharrequired=Truestring='Name'
No public methods.
New fields (2)
-
nb_daysIntegercompute='_compute_nb_days' -
start_dateDatedefault=fields.Date.context_todayhelp='Date from which you want to synchronize (back up to 60 days)'required=Truestring='Synchronize from'
-
action_l10n_ro_edi_fetch_invoices_from_date(self)
New fields (9)
-
attachmentBinaryreadonly=True -
datetimeDatetimedefault=fields.Datetime.nowreadonly=Truerequired=True -
invoice_idMany2one → account.movecomodel_name='account.move'readonly=Truerequired=True -
key_certificateCharreadonly=True -
key_downloadCharreadonly=Truestring='Document download key' -
key_signatureCharreadonly=True -
messageCharreadonly=True -
show_fetch_status_buttonBooleancompute='_compute_show_fetch_status_button' -
stateSelectionhelp='Sent -> Successfully sent to the SPV, waiting for validation.\n Validated -> Sent & validated by the SPV.\n Refused -> Sent & refused by the SPV.\n 'readonly=Truerequired=Trueselection=[('invoice_sent', 'Sent'), ('invoice_refused', 'Error'), ('invoice_validated', 'Validated')]string='E-Factura Status'
-
action_l10n_ro_edi_download_attachment(self)Download the sent attachment in case if no status have been received from ANAF. Otherwise, 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 (1)
-
cpv_code_idMany2one → l10n_ro.cpv.codecomodel_name='l10n_ro.cpv.code'help='Common Procurement Vocabulary, used by e-Factura'string='CPV Code'
No public methods.
New fields (9)
-
l10n_ro_edi_access_expiry_dateDatestring='Access Token Expiry Date' -
l10n_ro_edi_access_tokenChargroups='base.group_user'string='Access Token' -
l10n_ro_edi_anaf_imported_inv_journal_idMany2one → account.journalcomodel_name='account.journal'compute='_compute_l10n_ro_edi_anaf_imported_inv_journal'domain="[('type', '=', 'purchase')]"readonly=Falsestore=Truestring='Select journal for SPV imported bills' -
l10n_ro_edi_callback_urlCharcompute='_compute_l10n_ro_edi_callback_url' -
l10n_ro_edi_client_idCharstring='eFactura Client ID' -
l10n_ro_edi_client_secretChargroups='base.group_user'string='Client Secret' -
l10n_ro_edi_refresh_expiry_dateDatestring='Refresh Token Expiry Date' -
l10n_ro_edi_refresh_tokenChargroups='base.group_user'string='Refresh Token' -
l10n_ro_edi_test_envBooleandefault=Truestring='Use Test Environment'
No public methods.
New fields (9)
-
l10n_ro_edi_access_expiry_dateDatereadonly=Falserelated='company_id.l10n_ro_edi_access_expiry_date' -
l10n_ro_edi_access_tokenCharreadonly=Falserelated='company_id.l10n_ro_edi_access_token' -
l10n_ro_edi_anaf_imported_inv_journal_idMany2onereadonly=Falserelated='company_id.l10n_ro_edi_anaf_imported_inv_journal_id' -
l10n_ro_edi_callback_urlCharrelated='company_id.l10n_ro_edi_callback_url' -
l10n_ro_edi_client_idCharreadonly=Falserelated='company_id.l10n_ro_edi_client_id' -
l10n_ro_edi_client_secretCharreadonly=Falserelated='company_id.l10n_ro_edi_client_secret' -
l10n_ro_edi_refresh_expiry_dateDatereadonly=Falserelated='company_id.l10n_ro_edi_refresh_expiry_date' -
l10n_ro_edi_refresh_tokenCharreadonly=Falserelated='company_id.l10n_ro_edi_refresh_token' -
l10n_ro_edi_test_envBooleanreadonly=Falserelated='company_id.l10n_ro_edi_test_env'
-
button_l10n_ro_edi_generate_token(self)Redirects to controllers/main.py ~ `authorize` method
New fields (1)
-
invoice_edi_formatSelectionselection_add=[('ciusro', 'Romania (CIUS RO)')]
No public methods.
Loading…
Loading…
Loading…