Repository
OCA/l10n-romania · module folder · Try on Runboat
Module version
1.89.0
Category
Localization
Folder size
0.29 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-romania
Last tracking update
2026-08-07 08:09:30
Authors
Odoo Community Association (OCA), NextERP Romania, Terrabit
Maintainers
Odoo Community Association (OCA), NextERP Romania, Terrabit
Committers
Fekete Mihai, GitHub, Mihai Fekete, Dorin Hongu, Weblate, OCA-git-bot, victor, oca-ci, Cojocaru Marcel, Stana Natanaela, Adrian Vacaru, danila12, Sima Elisabeta, Larisa-nexterp, diginesis, carmen, Flavia0320, VoicuStefan2001
Odoo dependencies
Python dependencies
PyJWT
System dependencies
None
Required by
l10n_ro_message_spv
Description

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
cius_InvoiceLineType cius_InvoiceLineType ir.ui.view qweb Inherits account_edi_ubl_cii.ubl_20_InvoiceLineType
cius_InvoiceType cius_InvoiceType ir.ui.view qweb Inherits account_edi_ubl_cii.ubl_20_InvoiceType
product_template_form_view product.normal.form.inherit.stock product.template form Inherits product.product_template_form_view
res_config_settings_view_form res.config.settings.view.form.inherit res.config.settings form Inherits l10n_ro_config.res_config_settings_view_form
ubl_20_TaxTotalType ubl_20_TaxTotalType ir.ui.view qweb Inherits account_edi_ubl_cii.ubl_20_TaxTotalType
view_move_form account.move.form account.move form Inherits account.view_move_form
view_partner_form res.partner.form res.partner form Inherits l10n_ro_config.view_partner_create_by_vat
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (11)

New fields (0)

No new fields.

Public methods (1)
  • l10n_ro_edi_post_message(self, invoice, message, res)
    @api.model

New fields (0)

No new fields.

Public methods (3)
  • l10n_ro_addPDF_from_att(self, invoice, pdf)
  • l10n_ro_renderAnafPdf(self, invoice)
  • split_string(self, string)

New fields (6)
  • l10n_ro_edi_download Char
    copy=False help='ID used to download the ZIP file from ANAF.' args: 'ID Download ANAF (RO)'
  • l10n_ro_edi_fields_readonly Boolean
    compute='_compute_l10n_ro_show_edi_fields' string='Make ANAF EDI Fields readonly'
  • l10n_ro_edi_previous_transaction Char
    copy=False help="Technical field used to track previous transactions or download ID's received from ANAF. Useful in case the invoice was sent and had errors, we could find the invoice based on old data, since on reset to draft they are removed." args: 'Previous Transactions or Download (RO)'
  • l10n_ro_edi_transaction Char
    copy=False help='Technical field used to track the status of a submission.' args: 'Transaction ID (RO)'
  • l10n_ro_show_anaf_download_edi_buton Boolean
    compute='_compute_l10n_ro_show_anaf_download_edi_buton' string='Show ANAF Download EDI Button'
  • l10n_ro_show_edi_fields Boolean
    compute='_compute_l10n_ro_show_edi_fields' string='Show ANAF EDI Fields'
Public methods (16)
  • action_post(self)
  • attach_ubl_xml_file_button(self)
  • button_cancel_posted_moves(self)
  • button_draft(self)
  • button_process_edi_web_services(self)
  • get_l10n_ro_edi_invoice_needed(self)
  • get_l10n_ro_high_risk_nc_codes(self)
  • l10n_ro_check_anaf_error_xml(self, zip_content)
  • l10n_ro_complete_old_transaction(self, old_transaction)
  • l10n_ro_download_zip_anaf(self, anaf_config=False, return_error=False)
  • l10n_ro_get_xml_file(self, zip_ref)
  • l10n_ro_process_anaf_xml_file(self, attachment=None)
  • l10n_ro_process_anaf_zip_file(self, zip_content)
  • l10n_ro_save_anaf_xml_file(self, zip_content)
    Process a ZIP containing the sending and official XML signed document. This will only be available for invoices that have been successfully validated by ANAF and the government.
  • l10n_ro_save_file(self, file_name, file_content, mimetype='application/xml')
  • write(self, vals)

New fields (1)
  • l10n_ro_vendor_code Char
    copy=False string='Vendor Code'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • l10n_ro_add_pdf_to_xml(self, invoice, stream_data, tree, anchor_elements, edi_attachment)
    @api.model

New fields (1)
  • scope Selection
    selection_add=[('e-factura', 'E-factura')]
Public methods (0)

No public methods.

New fields (1)
  • l10n_ro_nc_code Char
    compute='_compute_l10n_ro_nc_code' index=True readonly=False store=True args: 'Romania - NC Code'
Public methods (0)

No public methods.

New fields (1)
  • l10n_ro_nc_code Char
    compute='_compute_l10n_ro_nc_code' inverse='_inverse_l10n_ro_nc_code' store=True args: 'Romania - NC Code'
Public methods (0)

No public methods.

New fields (9)
  • l10n_ro_default_cius_pdf_report Many2one → ir.actions.report
    help='Default PDF report to be attached to xml e-invoice.' string='Default PDF Report' args: 'ir.actions.report'
  • l10n_ro_download_einvoices Boolean
    default=False string='Download e-invoices from ANAF'
  • l10n_ro_download_einvoices_days Integer
    default=10 string='Maximum number of days to download e-invoices.'
  • l10n_ro_download_einvoices_start_date Date
    string='Start date to download e-invoices'
  • l10n_ro_edi_cius_embed_pdf Boolean
    default=False string='Embed PDF in CIUS'
  • l10n_ro_edi_error_notify_users Many2many → res.users
    help='Add users to receive EDI Error messages' relation='res_company_res_users_edi_notify_rel' string='EDI Error Notify Users' args: 'res.users'
  • l10n_ro_edi_residence Integer
    default=5 string='Period of Residence'
  • l10n_ro_render_anaf_pdf Boolean
    default=False string='Render Anaf PDF'
  • l10n_ro_store_einvoices Boolean
    default=False string='Store E-Invoice signed by Anaf.'
Public methods (0)

No public methods.

New fields (9)
  • l10n_ro_default_cius_pdf_report Many2one
    help='Default PDF report to be attached to xml e-invoice.' readonly=False related='company_id.l10n_ro_default_cius_pdf_report' string='Default PDF Report'
  • l10n_ro_download_einvoices Boolean
    readonly=False related='company_id.l10n_ro_download_einvoices' string='Download e-invoices from ANAF'
  • l10n_ro_download_einvoices_days Integer
    readonly=False related='company_id.l10n_ro_download_einvoices_days' string='Maximum number of days to download e-invoices.'
  • l10n_ro_download_einvoices_start_date Date
    readonly=False related='company_id.l10n_ro_download_einvoices_start_date' string='Start date to download e-invoices'
  • l10n_ro_edi_cius_embed_pdf Boolean
    readonly=False related='company_id.l10n_ro_edi_cius_embed_pdf' string='Embed PDF in CIUS'
  • l10n_ro_edi_error_notify_users Many2many
    readonly=False related='company_id.l10n_ro_edi_error_notify_users' string='EDI Error Notify Users'
  • l10n_ro_edi_residence Integer
    readonly=False related='company_id.l10n_ro_edi_residence' string='Residence'
  • l10n_ro_render_anaf_pdf Boolean
    readonly=False related='company_id.l10n_ro_render_anaf_pdf' string='Render Anaf PDF'
  • l10n_ro_store_einvoices Boolean
    readonly=False related='company_id.l10n_ro_store_einvoices' string='Store E-Invoice signed by Anaf.'
Public methods (0)

No public methods.

New fields (3)
  • l10n_ro_edi_ubl_no_send Boolean
    help='Check this if the partner should not receive UBL invoices.' args: 'Romania - No send UBL'
  • l10n_ro_edi_ubl_no_send_cnp Boolean
    help='Check this if the partner should not receive UBL invoices on their CNP.' args: 'Romania - No send CNP UBL'
  • l10n_ro_is_government_institution Boolean
    help='Check this if the partner is a government institution.Will be used to calculate the sending of the invoice to the e-invoice system.' args: 'Romania - Is government institution'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

Loading…

Loading…