Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 7 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
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.2 MB
Module directory on disk
Code analysis 0 migration notes 9 models 7 views 0 HTTP endpoints

Description

This module sends the taxes information (mostly VAT) of the vendor bills and customer invoices to the SII. It is called Procedimiento G417 - IVA. Llevanza de libros registro. It is required for every company with a turnover of +6M€ and others can already make use of it. The invoices are automatically sent after validation.

How the information is sent to the SII depends on the configuration that is put in the taxes. The taxes that were in the chart template (l10n_es) are automatically configured to have the right type. It is possible however that extra taxes need to be created for certain exempt/no sujeta reasons.

You need to configure your certificate and the tax agency.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 7

XML IDNameModelTypeStatus
account_journal_dashboard_kanban_view_sii account.journal.dashboard.kanban.sii account.journal kanban Inherits account.account_journal_dashboard_kanban_view
certificate_certificate_view_form certificate_certificate_view_form.inherit.l10n_es_edi_sii certificate.certificate form Inherits certificate.certificate_certificate_view_form
certificate_certificate_view_search certificate_certificate_view_search.inherit.l10n_es_edi_sii certificate.certificate search Inherits certificate.certificate_certificate_view_search
res_config_settings_view_form res.config.settings.view.form.inherit.l10n.es res.config.settings form Inherits l10n_es.res_config_settings_view_form
view_account_invoice_filter_inherit_l10n_es_edi_sii account.move.search.inherit.l10n_es_edi_sii account.move search Inherits account.view_account_invoice_filter
view_invoice_tree_inherit_l10n_es_edi_sii account.move.tree.inherit.l10n_es_edi_sii account.move tree Inherits account.view_invoice_tree
view_move_form_inherit_l10n_es_edi account.move.form.inherit.l10n_es_edi account.move form Inherits account.view_move_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 9

New fields (2)
  • l10n_es_sii_kanban_state Selection
    compute='_compute_l10n_es_sii_pending_count' selection=[('error', 'Error'), ('urgent', 'Urgent')]
  • l10n_es_sii_pending_count Integer
    compute='_compute_l10n_es_sii_pending_count'
Public methods (1)
  • action_l10n_es_sii_open_pending(self)

New fields (7)
  • l10n_es_edi_csv Char
    help='Secure Verification Code of the last document' related='l10n_es_edi_sii_last_document_id.csv' string='CSV'
  • l10n_es_edi_is_required Boolean
    compute='_compute_l10n_es_edi_is_required' compute_sql='_compute_sql_l10n_es_edi_is_required' compute_sudo=True string='Is the Spanish EDI needed'
  • l10n_es_edi_sii_document_ids One2many → l10n_es_edi_sii.document
    comodel_name='l10n_es_edi_sii.document' inverse_name='move_id' string='SII Documents'
  • l10n_es_edi_sii_error Html
    related='l10n_es_edi_sii_last_document_id.response_message' string='SII Error'
  • l10n_es_edi_sii_last_document_id Many2one → l10n_es_edi_sii.document
    comodel_name='l10n_es_edi_sii.document' compute='_compute_l10n_es_edi_sii_data' compute_sql='_compute_sql_l10n_es_edi_sii_last_document_id' compute_sudo=True string='Last SII Document'
  • l10n_es_edi_sii_state Selection
    compute='_compute_l10n_es_edi_sii_data' compute_sql='_compute_sql_l10n_es_edi_sii_state' compute_sudo=True selection=[('to_send', 'To Send'), ('to_cancel', 'To Cancel'), ('sent', 'Sent'), ('accepted_with_errors', 'Accepted with Errors'), ('cancelled', 'Cancelled')] string='Spain SII Status'
  • l10n_es_registration_date Date
    copy=False help='Date when the invoice was registered in the SII system.' string='Registration Date'
Public methods (3)
  • action_l10n_es_send_sii(self)
  • action_l10n_es_sii_send_in_batch(self)
    Groups selected invoices, chunks them, and sends them to SII via batched payloads.
  • button_request_cancel(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 (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • scope Selection
    selection_add=[('sii', 'SII')]
Public methods (0)

No public methods.

New fields (10)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' help='The full JSON payload (Header + Body) sent to the SII.' ondelete='restrict' string='SII JSON Payload'
  • company_id Many2one → res.company
    comodel_name='res.company' related='move_id.company_id'
  • csv Char
    help='Secure Verification Code returned by the SII' string='CSV'
  • move_id Many2one → account.move
    comodel_name='account.move' ondelete='cascade' required=True
  • response_message Html
    string='Response'
  • sii_json_file Binary
    compute='_compute_sii_json_file' string='Download JSON'
  • sii_json_filename Char
    compute='_compute_sii_json_file' string='JSON Filename'
  • state Selection
    default='to_send' required=True selection=[('to_send', 'To Send'), ('accepted', 'Accepted'), ('accepted_with_errors', 'Accepted with Errors'), ('to_cancel', 'To Cancel'), ('cancelled', 'Cancelled')] string='State'
  • xml_attachment_filename Char
    compute='_compute_xml_attachment' string='XML Filename'
  • xml_attachment_raw Binary
    compute='_compute_xml_attachment' string='XML'
Public methods (2)
  • action_download_json(self)
  • action_download_xml(self)

New fields (4)
  • l10n_es_sii_certificate_id Many2one → certificate.certificate
    comodel_name='certificate.certificate' compute='_compute_l10n_es_sii_certificate' readonly=False store=True string='Certificate (SII)'
  • l10n_es_sii_certificate_ids One2many → certificate.certificate
    comodel_name='certificate.certificate' domain=[('scope', '=', 'sii')] inverse_name='company_id'
  • l10n_es_sii_tax_agency Selection
    default=False selection=[('aeat', 'Agencia Tributaria española'), ('gipuzkoa', 'Hacienda Foral de Gipuzkoa'), ('bizkaia', 'Hacienda Foral de Bizkaia'), ('navarra', 'Hacienda Foral de Navarra')] string='Tax Agency for SII'
  • l10n_es_sii_test_env Boolean
    default=True help='Use the test environment for SII' string='SII Test Mode'
Public methods (0)

No public methods.

New fields (3)
  • l10n_es_sii_certificate_ids One2many
    readonly=False related='company_id.l10n_es_sii_certificate_ids'
  • l10n_es_sii_tax_agency Selection
    readonly=False related='company_id.l10n_es_sii_tax_agency'
  • l10n_es_sii_test_env Boolean
    readonly=False related='company_id.l10n_es_sii_test_env'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…