TIP: You can type at any time to perform a new search.

Security findings

Repository
odoo/odoo · module folder
Module version
1.1
Category
Accounting/Localizations/EDI
Folder size
0.17 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-10-05 00:19:45
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Xavier Morel, Raphael Collet, Josse Colpaert, Odoo Translation Bot, Christophe Matthieu, Victor Feyens, Katherine Zaoral, Tiffany Chang (tic), Yosua Nicolaus, Dylan Kiss (dyki), Harsh Modi, Smit Patel, Corentin Heinix (cohe), Krzysztof Magusiak (krma), cahu, jlll, Carlos (csae)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.
    

Code Analysis info_outline

Views touched (5)
XML IDNameModelTypeStatus
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_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 (7)

New fields (6)
  • l10n_es_edi_csv Char
    compute='_compute_l10n_es_edi_sii_data' help='Secure Verification Code of the last accepted document' string='CSV'
  • l10n_es_edi_is_required Boolean
    compute='_compute_l10n_es_edi_is_required' 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
    compute='_compute_l10n_es_edi_sii_data' string='SII Error'
  • l10n_es_edi_sii_state Selection
    compute='_compute_l10n_es_edi_sii_data' selection=[('to_send', 'To Send'), ('sent', 'Sent'), ('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 (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…