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 6 Odoo series since 13.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
4 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.14 MB
Module directory on disk
Code analysis 0 migration notes 5 models 8 views 0 HTTP endpoints

Description

  • El módulo recupera los datos enviados a la AEAT mediante peticiones unitarias o por meses (como una declaración AEAT)
  • Los datos recibidos se procesan intentando asociarlos mediante su CSV (Código Seguro de Verificación) y si no encuentra el CSV, busca por número de factura/fecha/partner
  • El módulo muestra aquellos registros que no han conseguido asociarse, así como aquellas facturas en Odoo que no tienen su correspondiente registro en los datos recibidos.
  • En segundo lugar se exponen los registros que tienen diferencias entre Odoo y AEAT
  • Por último se muestran por separado facturas 'No contrastadas' o 'Parcialmente contrastadas', es decir, las que la propia AEAT no haya podido cotejar entre el emisor de la factura y el receptor, siendo los dos obligados a declarar en el sistema SII.
  • El botón/acción "Contrast with AEAT" también puede lanzarse sobre facturas cuyo envío al SII haya fallado (por ejemplo, con el error "3000 | Factura duplicada"). Si la AEAT confirma que la factura ya está registrada, se recupera su CSV y se corrige el estado de envío en Odoo, en lugar de dejarla bloqueada indefinidamente en estado de error.

Dependencies

Odoo dependencies
OCA/account-financial-reporting:
OCA/account-invoicing:
OCA/l10n-spain:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
deepdiff<8, requests, zeep, unidecode
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 8

XML IDNameModelTypeStatus
invoice_sii_match_form account.invoice.sii.match.form account.move form Inherits l10n_es_aeat_sii_oca.invoice_sii_form
view_account_invoice_sii_match_filter account.invoice.sii.match.filter account.move Inherits account.view_account_invoice_filter
view_l10n_es_aeat_sii_match_report_filter l10n_es.aeat.sii.match.report.filter l10n.es.aeat.sii.match.report search New
view_l10n_es_aeat_sii_match_report_form l10n_es.aeat.sii.match.report.form l10n.es.aeat.sii.match.report form New
view_l10n_es_aeat_sii_match_report_tree l10n_es.aeat.sii.match.report.list l10n.es.aeat.sii.match.report list New
view_l10n_es_aeat_sii_match_result_filter l10n_es.aeat.sii.match.result.filter l10n.es.aeat.sii.match.result search New
view_l10n_es_aeat_sii_match_result_form l10n_es.aeat.sii.match.result.form l10n.es.aeat.sii.match.result form New
view_l10n_es_aeat_sii_match_result_tree l10n_es.aeat.sii.match.result.list l10n.es.aeat.sii.match.result list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (0)

No new fields.

Public methods (1)
  • contrast_aeat(self)

New fields (6)
  • invoice_id Many2oneReference
    index=True model_field='model' readonly=True string='Document'
  • model Char
    default='account.move'
  • report_id Many2one → l10n.es.aeat.sii.match.result
    comodel_name='l10n.es.aeat.sii.match.result' index=True ondelete='cascade' string='Related SII match report'
  • sii_field Char
    copy=False string='SII field name'
  • sii_return_field_value Char
    copy=False string='SII return field value'
  • sii_sent_field_value Char
    copy=False string='SII sent field value'
Public methods (0)

No public methods.

New fields (20)
  • calculate_date Datetime
    string='Calculate date'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • fiscalyear Integer
    default=<expr> required=True string='Fiscal year'
  • invoice_type Selection
    required=True selection=[('out', 'Out invoice/refund'), ('in', 'In invoice/refund')] string='Invoice type'
  • name Char
    required=True string='Report identifier'
  • number_records Integer
    readonly=True string='Total records'
  • number_records_both Integer
    readonly=True string='Records in Odoo and SII'
  • number_records_contrasted Integer
    readonly=True string='Records contrasted'
  • number_records_correct Integer
    readonly=True string='Records correctly contrasted'
  • number_records_in_process Integer
    readonly=True string='Records in process of contrast'
  • number_records_no_exist Integer
    readonly=True string='Records without contrast'
  • number_records_no_test Integer
    readonly=True string='Records no testables'
  • number_records_not_contrasted Integer
    readonly=True string='Records not contasted'
  • number_records_odoo Integer
    readonly=True string='Records only in Odoo'
  • number_records_partially Integer
    readonly=True string='Records partially correct'
  • number_records_partially_contrasted Integer
    readonly=True string='Records partially contrasted'
  • number_records_sii Integer
    readonly=True string='Records only in SII'
  • period_type Selection
    required=True selection=[('01', '01 - January'), ('02', '02 - February'), ('03', '03 - March'), ('04', '04 - April'), ('05', '05 - May'), ('06', '06 - June'), ('07', '07 - July'), ('08', '08 - August'), ('09', '09 - September'), ('10', '10 - October'), ('11', '11 - November'), ('12', '12 - December')] string='Period type'
  • result_ids One2many → l10n.es.aeat.sii.match.result
    comodel_name='l10n.es.aeat.sii.match.result' inverse_name='report_id' readonly=True string='SII Match Result'
  • state Selection
    default='draft' selection=[('draft', 'Draft'), ('calculated', 'Calculated'), ('done', 'Done'), ('error', 'Error'), ('cancelled', 'Cancelled')]
Public methods (5)
  • button_calculate(self)
  • button_cancel(self)
  • button_confirm(self)
  • button_recover(self)
  • open_result(self)

New fields (9)
  • csv Char
    string='CSV'
  • invoice Char
  • invoice_id Many2oneReference
    index=True model_field='model' readonly=True required=True string='Document'
  • invoice_location Selection
    copy=False readonly=True selection=[('both', 'Invoice in Odoo and SII'), ('odoo', 'Invoice in Odoo'), ('sii', 'Invoice in SII')] string='Invoice location'
  • model Char
    default='account.move' required=True
  • report_id Many2one → l10n.es.aeat.sii.match.report
    comodel_name='l10n.es.aeat.sii.match.report' ondelete='cascade' string='AEAT SII Match Report ID'
  • sii_contrast_state Selection
    copy=False readonly=True selection=[('correct', 'Correct'), ('no_exist', "Doesn't exist"), ('partially', 'Partially correct')] string='AEAT contrast state'
  • sii_match_difference_ids One2many → l10n.es.aeat.sii.match.difference
    comodel_name='l10n.es.aeat.sii.match.difference' copy=False inverse_name='report_id' readonly=True string='SII match differences'
  • sii_match_state Selection
    copy=False readonly=True selection='_get_selection_sii_match_state' string='Match state'
Public methods (0)

No public methods.

New fields (5)
  • sii_contrast_state Selection
    copy=False readonly=True selection=[('correct', 'Correct'), ('no_exist', "Doesn't exist"), ('partially', 'Partially correct')] string='AEAT contrast state'
  • sii_match_difference_ids One2many → l10n.es.aeat.sii.match.difference
    comodel_name='l10n.es.aeat.sii.match.difference' copy=False domain=<expr> inverse_name='invoice_id' readonly=True string='SII match differences'
  • sii_match_return Text
    copy=False readonly=True string='SII match return'
  • sii_match_sent Text
    copy=False readonly=True string='SII match sent'
  • sii_match_state Selection
    copy=False help='- No testable: The counterpart is not subscribed to SII the record will not be contrasted.\n- In process of contrast: AEAT is processing the data soon will be a result.\n- Not contrasted: The counterpart has not sent the invoice to SII, AEAT gives up to 4 months in order to contrast the information.\n- Partially contrasted: A invoice has been found but some data is different.\n- Contrasted: The counterpart has send the invoice to SII, all is OK.' readonly=True selection=[('1', 'No testable'), ('2', 'In process of contrast'), ('3', 'Not contrasted'), ('4', 'Partially contrasted'), ('5', 'Contrasted')] string='Match state'
Public methods (1)
  • contrast_aeat(self)
    Overridable hook for raising any error or filtering out records if needed.

Loading…

Loading…

Loading…

Loading…

Loading…