AEAT Modelo 322

l10n_es_aeat_mod322
REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/14.0/l10n_es_aeat_mod322
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Dixmit
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Dixmit
COMMITTERS
COMMITTERSEnric Tobella, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-reporting:
    - account_tax_balance
OCA/l10n-spain:
    - l10n_es_aeat_mod303
    - l10n_es_aeat
    - l10n_es_extra_data
OCA/server-ux:
    - date_range
odoo/odoo:
    - l10n_es
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_iban
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cryptography<39
unidecode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
l10n_es_aeat_mod322_group_form_view l10n.es.aeat.mod322.group.form (in l10n_es_aeat_mod322) l10n.es.aeat.mod322.group form New
l10n_es_aeat_mod322_group_search_view l10n.es.aeat.mod322.group.search (in l10n_es_aeat_mod322) l10n.es.aeat.mod322.group search New
l10n_es_aeat_mod322_group_tree_view l10n.es.aeat.mod322.group.tree (in l10n_es_aeat_mod322) l10n.es.aeat.mod322.group tree New
l10n_es_aeat_mod322_report_form_view l10n.es.aeat.mod322.report.form (in l10n_es_aeat_mod322) l10n.es.aeat.mod322.report group Inherits l10n_es_aeat.view_l10n_es_aeat_report_form
l10n_es_aeat_mod322_report_tree_view l10n.es.aeat.mod322.report.tree (in l10n_es_aeat_mod322) l10n.es.aeat.mod322.report tree Inherits l10n_es_aeat.view_l10n_es_aeat_report_tree
Models touched (2)

New fields (4)
  • company_ids Many2many → res.company
    default=<expr> args: 'res.company'
  • main_company_id Many2one → res.company
    default=<expr> required=True args: 'res.company'
  • name Char
    help='Number assigned by AEAT to the group' required=True
  • vinculated_partner_ids Many2many → res.partner
    help='Use this field if you have other vinculated partners' args: 'res.partner'
Public methods (0)

No public methods.

New fields (17)
  • allow_posting Boolean
    default=True string='Allow posting'
  • atribuible_estado Float
    compute='_compute_atribuible_estado' readonly=True store=True string='[65] Attributable to the Administration'
  • casilla_63 Float
    compute='_compute_casilla_63' help='(VAT payable - VAT receivable)' readonly=True store=True string='[63] General scheme result'
  • company_type Selection
    compute='_compute_company_info' selection=[('D', 'Dominante'), ('P', 'Dependiente')] states=EDITABLE_ON_DRAFT store=True string='Tipo de compañía'
  • counterpart_account_id Many2one → account.account
    comodel_name='account.account' compute='_compute_counterpart_account_id' domain="[('company_id', '=', company_id)]" readonly=False store=True string='Counterpart account'
  • cuota_compensar Float
    default=0 help='Fee to compensate for prior periods, in which his statement was to return and compensation back option was chosen' states=NON_EDITABLE_ON_DONE string='[66] Applied fees to compensate'
  • cuota_liquidacion Float
    compute='_compute_cuota_liquidacion' default=0 states=NON_EDITABLE_ON_DONE store=True string='[68] Result'
  • dominant_company_vat Char
    compute='_compute_company_info' states=EDITABLE_ON_DRAFT store=True string='NIF de la entidad dominante'
  • exonerated_390 Selection
    default='2' help='Exonerado de la Declaración-resumen anual del IVA, modelo 390: Volumen de operaciones (art. 121 LIVA)' readonly=True required=True selection=[('1', 'Exonerado'), ('2', 'No exonerado')] states=EDITABLE_ON_DRAFT string='Exonerado mod. 390'
  • group_number Char
    compute='_compute_company_info' states=EDITABLE_ON_DRAFT store=True string='Nº Grupo'
  • main_activity_code_id Many2one → l10n.es.aeat.mod303.report.activity.code
    comodel_name='l10n.es.aeat.mod303.report.activity.code' domain=ACTIVITY_CODE_DOMAIN states=NON_EDITABLE_ON_DONE string='Código actividad principal'
  • main_activity_iae Char
    size=4 states=NON_EDITABLE_ON_DONE string='Epígrafe I.A.E. actividad principal'
  • operaciones_ejercicio Float
    compute='_compute_operaciones_ejercicio' default=0 store=True string='[88] Operaciones realizadas en el ejercicio'
  • porcentaje_atribuible_estado Float
    default=100 help='Taxpayers who pay jointly to the Central Government and the Provincial Councils of the Basque Country or the Autonomous Community of Navarra, will enter in this box the percentage of volume operations in the common territory. Other taxpayers will enter in this box 100%' states=NON_EDITABLE_ON_DONE string='[64] % attributable to State'
  • total_deducir Float
    compute='_compute_total_deducir' string='[62] Total a deducir'
  • total_devengado Float
    compute='_compute_total_devengado' string='[38] Total devengador'
  • vinculated_partner_ids Many2many → res.partner
    compute='_compute_company_info' states=EDITABLE_ON_DRAFT store=True args: 'res.partner'
Public methods (1)
  • check_qty(self)
    @api.constrains('cuota_compensar')
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-spain
PULL REQUEST
PULL REQUEST[18.0][MIG] l10n_es_aeat_mod322: Migration to 18.0 (#4836)