OdooWiki OCA HUB

AEAT Modelo 322

l10n_es_aeat_mod322 folder_open OCA/l10n-spain open_in_new
Uncategorised License: AGPL-3

Módulo para la presentación del modelo 322 (IVA - Autodeclaración mensual individual para grupos de entidades) de la Agencia Española de Administración Tributaria.

Incluye la exportación al formato BOE para su uso telemático y la creación del asiento de regularización de las cuentas de impuestos.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Manage the Spanish AEAT Model 322 VAT self-assessment for VAT groups: configure the group of companies, generate the report from accounting entries, compute the result and export it in the official BOE format.

This module adds the Spanish tax report Model 322, a monthly VAT self-assessment for groups of entities, on top of Model 303.

Users configure a VAT group in the new "AEAT 322 Groups" screen (under the AEAT configuration menu): a group name, the dominant company, the other companies of the group and any other linked partners. A group name must be unique per dominant company.

On each Model 322 report, the group number, the dominant company's VAT number, the company type (dominant or dependent) and the linked partners are filled in automatically from that group configuration. If a company belongs to more than one group, Odoo raises an error.

The report computes the totals from the tax lines: total payable, total deductible, the general scheme result, the amount attributable to the Administration (using the percentage attributable to the State, 100% by default), the result after fees to compensate, and the volume of operations of the year. The fee to compensate must be entered as a positive number. The counterpart account is proposed automatically (4750 for amounts to pay, 4700 for amounts to refund).

Fields 79 to 99 and 125 to 127 are only filled for the last period of the year (4th quarter or December) and when the company is not exonerated from Model 390. The report can be exported in the official BOE file format for online filing, and access is restricted to the AEAT accounting group with multi-company rules.

Models and fields (2)
  • l10n.es.aeat.mod322.group · new modelname, company_ids, main_company_id, vinculated_partner_ids
  • l10n.es.aeat.mod322.report · new modelcasilla_63 ([63] General scheme result), company_type (Tipo de compañía), group_number (Nº Grupo), allow_posting (Allow posting), total_deducir ([62] Total a deducir), exonerated_390 (Exonerado mod. 390), cuota_compensar ([66] Applied fees to compensate), total_devengado ([38] Total devengador), atribuible_estado ([65] Attributable to the Administration), cuota_liquidacion ([68] Result), main_activity_iae (Epígrafe I.A.E. actividad principal), dominant_company_vat (NIF de la entidad dominante), main_activity_code_id (Código actividad principal), operaciones_ejercicio ([88] Operaciones realizadas en el ejercicio), counterpart_account_id (Counterpart account), vinculated_partner_ids, porcentaje_atribuible_estado ([64] % attributable to State)

Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. The module is very large and only part of the code was read. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/l10n-spain.

terminal Installation and usage

OCA documentation · Odoo 14.0

Para configurar una entidad vinculada: #. Accedemos a un contacto #. En la pestaña contabilidad marcamos como entidad vinculada (es necesario definirlo por cada compañía)

Para crear un modelo:

  • Ir a Contabilidad > Informe > Informes legales > Declaraciones AEAT > Modelo 322.
  • Pulsar en el botón "Crear".
  • Seleccionar el año y el tipo de período. Las fechas incluidas se calculan automáticamente.
  • Seleccionar el tipo de declaración.
  • Rellenar el teléfono de contacto, necesario para la exportacion BOE.
  • Guardar y pulsar en el botón "Calcular".
  • Cuando los valores sean los correctos, pulsar en el botón "Confirmar"
  • Podemos exportar en formato BOE para presentarlo telemáticamente en el portal de la AEAT

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.