Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] l10n_es_aeat: Migration to 17.0 #3387

Merged
merged 173 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
ed58051
[ADD] l10n_es_aeat, l10n_es_aeat_347, l10n_es_aeat_349: Adds a generi…
Mar 4, 2011
f08737e
[IMP+FIX] l10n_es_aeat, l10n_es_aeat_mod347, l10n_es_aeat_mod349: Peq…
Mar 11, 2011
0873584
[FIX] l10n_es_aeat: Fix _format_number function so number '22027.0' i…
albertca Jun 15, 2011
d822a8b
[REF] Cambio de licencia de GPL3 a AGPL en los módulos donde sólo apa…
Aug 3, 2011
d8e0b02
[FIX] l10n_es_aeat_mod347,l10n_es_aeat: Añadimos los últimos cambios …
Mar 20, 2012
1d0990d
Commit inicial de una rama para la versión 7.0. Todos los módulos fue…
Jan 28, 2013
fcb77b5
[ADD] l10n_es_aeat: migración a OpenERP 7.0
acysos Nov 10, 2013
45bd488
[FIX] l10n_es_aeat: fix exception call (except_orm instead of orm_exc…
Nov 13, 2013
5271b4b
[FIX] l10n_es_aeat: bug atthach_id
acysos Nov 17, 2013
c4398c5
[FIX] msgstr in .pot files should be empty
Nov 22, 2013
f2922c0
[IMP] l10n_es_aeat: Icono para el módulo.
Jan 15, 2014
e801839
[IMP] l10n_es_aeat: Mejorado mecanismo de herencia para reaprovechar …
Jan 23, 2014
7883540
[FIX] l10n_es_aeat: compatibilidad de la función export_to_boe para e…
acysos Jan 31, 2014
c6a9187
[FIX] l10n_es_aeat: Pequeños cambios para acomodar la funcionalidad d…
Feb 5, 2014
24a700f
[IMP] l10n_es_aeat:
Mar 20, 2014
6270857
[MIG] Movidos todos los módulos a __unported__
pedrobaeza Jul 17, 2014
314a395
[FIX] l10n_es_aeat: New PEP8 checks
pedrobaeza Jul 27, 2014
3f999fd
[IMP] l10n_es_aeat:
Mar 23, 2015
f48be08
[FIX] l10n_es_aeat_*: PEP8 + Refinamientos varios
pedrobaeza Jun 25, 2015
8720327
[IMP+FIX] l10n_es_aeat_*: Cálculo por códigos de impuestos generaliza…
pedrobaeza Jun 28, 2015
0ab3ecc
[MIG] l10n_es_aeat_mod303: Modelo 303 de la AEAT totalmente refactori…
pedrobaeza Jul 10, 2015
caf221d
[FIX] l10n_es_aeat_mod303: Problema de permisos en l10n.es.aeat.tax.line
pedrobaeza Jul 20, 2015
c64d17e
[IMP] l10n_es_aeat/l10n_es_aeat_mod303: Crear asiento de regularizaci…
pedrobaeza Sep 15, 2015
543dec4
[FIX] l10n_es_aeat_mod111: Eliminar periodo específico y corregir exp…
pedrobaeza Oct 15, 2015
09e6ecf
[IMP] l10n_es_aeat_*: Cálculo de importes de impuestos por cadena en …
pedrobaeza Oct 18, 2015
1e7b352
[FIX] l10n_es_aeat: Remove tax code search limit
pedrobaeza Oct 18, 2015
2b41fa2
[FIX] l10n_es_aeat: _formatNumber con 0 para positivos en lugar de es…
pedrobaeza Oct 20, 2015
e5f643a
[FIX]l10n_es_aeat_export_to_boe_button
jcarlosmontoya Nov 2, 2015
202711f
[IMP] l10n_es_aeat_vat_prorrate: Enfoque definitivo
pedrobaeza Sep 6, 2015
6993c6f
[FIX] l10n_es_aeat: Default again to ' ' in positive numbers and allo…
pedrobaeza Nov 24, 2015
569bb64
[8.0][FIX] l10n_es_aeat: Corrige creación de apuntes con importe en d…
Feb 10, 2016
0272e2c
[FIX] l10n_es_aeat_*: Mejor herencia de impuestos
pedrobaeza Feb 11, 2016
8a0f4e3
[IMP] l10n_es_aeat_report: Remove tax line when report is removed
pedrobaeza Feb 19, 2016
4bc2e60
[FIX] Do not use hyphen in report sequence, only numbers
antespi Feb 28, 2016
fdff112
[IMP] l10n_es_aeat: Don't split regularization lines for same account…
pedrobaeza Mar 7, 2016
6caa888
[FIX] l10n_es_aeat: Sequence number multi-company
pedrobaeza Mar 15, 2016
231ce4a
[FIX].l10n_es_aeat. Correccion de Warning en onchange de period_type
Roodin Jun 3, 2016
e0c8dbe
l10n_es_aeat, l10n_es_aeat_mod349. Pequeñas mejoras
Roodin Jun 3, 2016
05bc297
l10n_es_aeat. Pequeños retoques de código, según correcciones propue…
Roodin Jun 3, 2016
5da4f0d
[FIX] l10n_es_aeat: Admit only valid character set on formatString
pedrobaeza Jun 20, 2016
784b862
[FIX] l10n_es_aeat: Handle non string variables in _formatString - Fi…
pedrobaeza Jul 15, 2016
9ed3db9
[IMP] Add tax amount to view
cubells Jul 19, 2016
a1cf308
[FIX] statusbar_colors not supported
cubells Aug 1, 2016
9a5fbf6
[IMP] l10n_es_aeat_mod111: Nuevo formato de exportación del modelo 11…
Jul 7, 2016
1a0e9b9
[FIX] l10n_es_aeat: Bump version
pedrobaeza Oct 18, 2016
469404c
[IMP] Tomar el último día del ultimo periodo para el asiento de regul…
antespi Oct 27, 2016
3865e77
[8.0][IMP][l10n_es_aeat_mod347] Improve performance and other things …
antespi Nov 12, 2016
2056ddc
[MIG] l10n_es_aeat: Initial migration
pedrobaeza Aug 14, 2016
d818ea8
[MIG] l10n_es_aeat/303: Rest of the migration
antespi Aug 30, 2016
6ed38e7
[IMP] l10n_es_aeat: Several warnings and imps
pedrobaeza Jan 22, 2017
7c44689
[FIX] l10n_es_aeat: Include direct statement account moves with taxes
pedrobaeza Feb 15, 2017
ee444ec
[MIG] l10n_es_aeat/mod303: Migration to 10.0
pedrobaeza Jan 23, 2017
96ac3d7
[FIX] l10n_es_aeat: Correct constraint for multi-company
pedrobaeza Feb 16, 2017
0de8fdf
[FIX] l10n_es_aeat_mod303: Adapt new BOE 2017 format
pedrobaeza Feb 16, 2017
440fef6
[FIX] l10n_es_aeat: Make repeat_expresion work
angelmoya Nov 28, 2016
5b52222
[IMP] l10n_es_aeat: Avoid rewrites on related fields
pedrobaeza Apr 10, 2017
4af6e8f
[FIX] l10n_es_aeat: Avoid multi-company error due to depends
pedrobaeza Apr 10, 2017
ef058d2
[IMP] l10n_es_aeat: Check previous declaration number on proper types
pedrobaeza Apr 10, 2017
a85128d
[FIX] l10n_es_aeat_*: Conditional expression is reversed + 303 with c…
pedrobaeza Apr 19, 2017
fcfcfb4
[FIX]. l10n_es_aeat. Fijado problema con referencai a _model al exportar
Roodin Apr 11, 2017
b60914b
[REF] i18n: Updating translation terms from weblate [ci skip]
gurneyalex Jun 29, 2017
ed88267
[FIX] l10n_es_aeat: Workaround for odoo/odoo#18438
pedrobaeza Jul 25, 2017
5a97505
[IMP] l10n_es_aeat: Add method for formatting BOE dates
pedrobaeza Aug 5, 2017
e721e3a
[MIG] l10n_es_aeat_mod115: Migration to 10.0
misern2 Aug 31, 2017
a77ce12
[IMP] l10n_es_aeat: _register_hook without warning
pedrobaeza Sep 10, 2017
157b1fd
[MIG] l10n_es_aeat: Migration to version 11.0
oihane Nov 10, 2017
21492b6
[FIX] l10n_es_aeat: ljust exige byte string de lenght 1
Nov 13, 2017
002f258
[FIX] l10n_es_aeat: Bytestring concatenation on file export to boe (S…
hugosantosred Nov 14, 2017
96279e8
[FIX] l10n_es_aeat: Add onchange_chart_template_id to TestL10nEsAeatM…
hugosantosred Nov 14, 2017
197034b
[FIX] l10n_es_aeat: Fix BOE export (#718)
JordiBForgeFlow Dec 14, 2017
99f6fb2
[MIG] l10n_es_aeat_mod349: Migration to 10.0
JordiBForgeFlow Jan 19, 2018
a7e7ee5
[MIG] l10n_es_aeat_mod349: Migration to 11.0
pedrobaeza Jan 30, 2018
13248c1
[IMP] l10n_es_aeat_mod303: Improve tests for handling negative price …
pedrobaeza Feb 20, 2018
ec09a64
[FIX+IMP] l10n_es_aeat_mod303: Fix refinements
pedrobaeza Apr 13, 2018
0d2fe19
[IMP] l10n_es_aeat_mod303: Date for regularization move on the end of…
pedrobaeza Apr 13, 2018
a0dd685
migración de l10n_es_vat_book a 11.0
JordiBForgeFlow Apr 23, 2018
4fd073d
[11.0] [IMP] l10n_es_aeat: Contact email added. (#866)
jvpascual Jul 2, 2018
821fff3
[IMP] l10n_es_aeat: New export_type alphabetic
Abranes Jun 7, 2018
511bf7f
[FIX] l10n_es_aeat: Adapt patch to P3
pedrobaeza Jul 19, 2018
86cd2a8
[IMP] l10n_es_aeat: Add tax_exigibility option to tax mapping
pedrobaeza Apr 24, 2018
74258a0
[FIX] l10n_es_aeat_mod303: Handle negative amounts in purchase refunds
pedrobaeza Sep 21, 2018
e1fc66b
[MIG] l10n_es_aeat: Migration to 11.0
pedrobaeza Oct 4, 2018
76100ed
[MIG] l10n_es_aeat_mod303: Migration to 12.0
pedrobaeza Oct 5, 2018
7efaa25
[FIX] l10n_es_aeat: Don't put company to AEAT partner
pedrobaeza Nov 19, 2018
1837783
[IMP] l10n_es_aeat_mod303: Add support for 2018 4T:
pedrobaeza Jan 18, 2019
e1e2b25
[IMP] l10n_es_aeat: Add BOE file comparer
pedrobaeza Jan 22, 2019
1ae73e5
[IMP] l10n_es_aeat: Add active field to export configs
pedrobaeza Jan 28, 2019
1ed733c
[FIX+IMP] l10n_es_aeat_mod347: Migration refinements + enhancements
pedrobaeza Feb 8, 2019
ae8e64d
[FIX] res_partner_bank.acc_type type of field
angelmoya Mar 27, 2019
307b129
[FIX] l10n_es_aeat: Create sequences when new company is created
pedrobaeza Apr 8, 2019
429fd32
[FIX] l10n_es_aeat: Depends on l10n_es
pedrobaeza May 23, 2019
51b1318
[IMP] l10n_es_aeat: Move state mapping to base
pedrobaeza May 27, 2019
69a96bc
[FIX] l10n_es_aeat: Remove " from BOE files
pedrobaeza Jul 19, 2019
7bf7e62
[FIX] l10n_es_aeat_mod347: Proper variable assignation
pedrobaeza Jul 23, 2019
49e74b1
[IMP] l10n_es_aeat: Add chatter + activities to AEAT models
pedrobaeza Sep 18, 2019
53f301c
Translated using Weblate (Spanish)
pedrobaeza Oct 22, 2019
14fefcc
[IMP] l10n_es_aeat: Añadir campo aeat_anonymous_cash_customer y funci…
carlosdauden Oct 23, 2019
9abd6ca
[IMP] l10n_es_aeat: Añadir método que devuelve impuestos desde planti…
carlosdauden Oct 29, 2019
c9d2686
[FIX] l10n_es_aeat: fix report client action launch
sergio-teruel Nov 15, 2019
76e7343
[ADD] l10n_es_aeat: certificates and soap. AEAT Partner check
acysos Jan 20, 2020
1761766
[UPD] Revert obsolete workaround
MiquelRForgeFlow Feb 12, 2020
ec4f168
[UPD] Remove deprecated from_string()
MiquelRForgeFlow Feb 12, 2020
766c4dc
[UPD] Remove deprecated decodestring and encodestring
MiquelRForgeFlow Feb 12, 2020
f8d6ec3
[IMP] Get taxes from templates instead of code description
MiquelRForgeFlow Feb 12, 2020
dd97913
[IMP+FIX] l10n_es_aeat: Move get taxes method to company + cleaning i…
pedrobaeza Mar 12, 2020
9a3983f
[IMP] l10n_es_aeat: black, isort
MiquelRForgeFlow Feb 25, 2020
c3ccc9c
[MIG] l10n_es_aeat: Migration to 13.0
MiquelRForgeFlow Feb 25, 2020
5aad968
[FIX] l10n_es_aeat: Avoid permission error posting invoice
pedrobaeza Jul 10, 2020
8af7a4f
refactor html display of vat book
JordiBForgeFlow Aug 6, 2020
7045f43
[MIG+IMP] l10n_es_aeat_sii: Complete migration
pedrobaeza Oct 1, 2020
0c7ae9f
[FIX] l10n_es_aeat: Incorrect translation
pedrobaeza Nov 28, 2020
21a966f
[IMP] l10n_es_aeat: black, isort, prettier
ozono Nov 8, 2020
6a3fdee
[MIG] l10n_es_aeat: Migration to 14.0
ozono Nov 8, 2020
e671631
[IMP] l10n_es_aeat: Set some base data for other modules
pedrobaeza Jan 28, 2021
ff21090
[FIX] l10n_es_aeat: Allow to unlink regularization move when cancelling
pedrobaeza Jan 31, 2021
35bbb7b
[IMP] l10n_es_aeat - unificar modelo aeat.sii.tax.agency
enriquemartin Jan 28, 2021
0613c17
[REF+IMP] l10n_es_aeat/l10n_es_aeat_sii_oca: Re-arrange certificate t…
pedrobaeza Feb 14, 2021
ff0aeb0
[FIX] l10n_es_aeat: Don't force journal on refunds
pedrobaeza Mar 11, 2021
5e2cdfa
[FIX]l10n_es_aeat: the ._origin field is added to the search for acco…
ValentinVinagre Mar 25, 2021
56ebb11
[FIX] l10n_es_aeat: Don't screw VAT check
pedrobaeza Mar 25, 2021
b724d49
[OU-ADD + IMP] l10n_es_aeat: Include record rule migration script + a…
pedrobaeza May 24, 2021
a270afa
[IMP] l10n_es_aeat: Remove dependancy on PyOpenSSL
etobella May 25, 2021
1d3e46d
[IMP] l10n_es_aeat: Fullfill data from the certificate
etobella May 27, 2021
2da341b
[FIX] l10n_es_aeat: Non stored + archive ribbon
pedrobaeza Aug 18, 2021
68c2207
[IMP] l10n_es_aeat_mod303_oss: Add field 124 and 127
RodrigoBM Aug 23, 2021
f001860
[MIG+IMP] l10n_es_aeat_mod303_oss: Migration to 13.0 + tests
pedrobaeza Oct 31, 2021
f11460c
[IMP] l10n_es_aeat: black, isort, prettier
ValentinVinagre Dec 16, 2021
be9a748
[MIG] l10n_es_aeat: Migration to 15.0
ValentinVinagre Dec 16, 2021
883b6d2
[FIX] l10n_es_aeat: Fix development_status
ValentinVinagre Dec 28, 2021
55a2f7b
[FIX] l10n_es_aeat: Added group group_erp_manager in the Account mana…
ValentinVinagre Dec 29, 2021
756c06b
Revert "[15.0][FIX] l10n_es_aeat: Added group group_erp_manager in th…
pedrobaeza Dec 30, 2021
55ee9f5
[FIX] l10n_es_aeat: Using sudo for the model ir.model.data
ValentinVinagre Dec 31, 2021
cd8c27c
[FIX] l10n_es_aeat: Proper position for anonymous check
pedrobaeza Feb 3, 2022
ad08d4a
[IMP] l10n_es_aeat: Use dynamic parent for AEAT reports
pedrobaeza Feb 4, 2022
62b7739
[FIX] black formatting
pedrobaeza Mar 30, 2022
ea0d603
[IMP] l10n_es_aeat: allow to define the identification type
etobella Jan 20, 2022
8264a3a
[FIX] l10n_es_aeat: Proper country code for Greece and old French col…
pedrobaeza May 12, 2022
8d85369
[FIX] l10n_es_aeat: Modify tests according country_code change
pedrobaeza May 12, 2022
31ad517
[FIX]l10n_es_aeat: Considerar modelo en comprobación de rango de fechas
manuelregidor May 17, 2022
73ccf39
[IMP] l10n_es_aeat: small adjustment in aeat tax agency view
LoisRForgeFlow Apr 3, 2022
9940bdc
[IMP] l10n_es_aeat: Avoid deprecated class in tests
pedrobaeza Jun 2, 2022
f54b1bd
[IMP]l10n_es_aeat: Base para mostrar numero errores en reports
manuelregidor Jun 2, 2022
2f6cc88
[FIX] l10n_es_aeat_*: exceptions.Warning -> exceptions.UserError
MiquelRForgeFlow Jun 7, 2022
c168364
[FIX] l10n_es_aeat: Consider correctly French overseas
pedrobaeza Sep 6, 2022
f460397
[FIX] l10n_es_aeat: specify cryptography version
yajo Sep 29, 2022
9e5bde8
[IMP] l10n_es_aeat: Fix cryptography dependancy
etobella Oct 2, 2022
bea8443
[FIX] l10n_es_aeat: Move `thirdparty_invoice` field to l10n_es_aeat
Shide Nov 21, 2022
4689547
[IMP] l10n_es_aeat: Add standard function for getting taxes
etobella Nov 11, 2022
c1bdc5f
[IMP] l10n_es_aeat: Hook for deprecated method
hildickethan Nov 15, 2022
b980dee
[IMP] l10n_es_aeat: Improve install time
xavier-bouquiaux Nov 29, 2022
6e91ed9
[MIG] l10n_es_aeat: Migration to 16.0
ramiadavid Oct 24, 2022
3f1ac1f
[FIX] l10n_es_aeat: Move thirdparty_invoice + thirdparty_number field…
victoralmau Nov 23, 2022
b76b85a
[FIX] l10n_es_aeat: Remove 14.0 migration script
ramiadavid Jan 2, 2023
64ba526
[FIX] l10n_es_aeat: Don't error on manually created export lines
sergio-teruel May 6, 2022
46f21a6
[FIX] l10n_es_aeat: add invisible company_id field in view
hugosantosred Jan 26, 2023
73cc823
[FIX] l10n_es_aeat: Proper interval overlap checking in tax map
pedrobaeza Feb 14, 2023
fe615be
[IMP] l10n_es_aeat: SavePointCase > TransactionCase + Warning > UserE…
victoralmau Mar 6, 2023
d433a80
[FIX] l10n_es_aeat: No ir.model forbidden access
pedrobaeza May 12, 2023
6731d6e
[FIX] l10n_es_aeat: replace deprecated method.
RodrigoBM May 30, 2023
f24ea7c
[FIX] l10n_es_aeat: fix broken views
ACheung-FactorLibre Jun 20, 2023
414ec76
[FIX] l10n_es_aeat: Consider financial_type="other" as regular operat…
pedrobaeza Jul 19, 2023
26fa61b
[IMP] l10n_es_aeat + l10n_aeat_sii_oca: Add standard function for get…
etobella Nov 11, 2022
1622246
[IMP] l10n_es_aeat: Added support for tax groups in the calculation o…
eantones Nov 25, 2022
877750d
[FIX+IMP] l10n_es_aeat*: VAT prorate proper encapsulation + names + t…
pedrobaeza Mar 8, 2023
1869728
[IMP] l10n_es_aeat: Make it work with multicompanies
etobella Oct 16, 2023
d5d5cb7
[16.0][IMP] l10n_es_aeat: Add tax agency
Nov 7, 2023
3d8738d
[IMP] l10n_es_aeat: Add country ISO code mapper function
aritzolea Nov 15, 2023
0e92f4d
l10n_es_aeat: No ir.model forbidden access, sudo in domain calc
czea Nov 16, 2023
054205d
[FIX] l10n_es_aeat: Convert COM countries to France
pedrobaeza Dec 28, 2023
2db3655
[IMP] l10n_es_aeat_report: Order aeat reports by date start
EmilioPascual Jan 18, 2024
e4793bd
[IMP] l10n_es_aeat: pre-commit auto fixes
ramiadavid Jan 20, 2024
a5dca32
[MIG] l10n_es_aeat: Migration to 17.0
ramiadavid Jan 20, 2024
66f713f
[MIG] l10n_es_aeat: Finish migration
pedrobaeza Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 196 additions & 0 deletions l10n_es_aeat/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
=========
AEAT Base
=========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a1a8107c2280882639260ed2286ac722985a545d49a8d51eb6a6233e09cb9af6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-spain/tree/17.0/l10n_es_aeat
:alt: OCA/l10n-spain
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-spain-17-0/l10n-spain-17-0-l10n_es_aeat
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Módulo base para declaraciones de la AEAT, que incluye:

- Campos base para todo los modelos AEAT.
- Vista base para todos los modelos.
- Crea una secuencia automática para los registros diferenciando por
modelo.
- Exportación del BOE. Define una exportación básica, con los
diferentes registros del fichero.
- Generación del registro del declarante con los campos genéricos de
los modelos.
- Motor de exportación paramétrica basado en una configuración que
puede ser introducida por datos XML o por interfaz.
- Visor de archivos BOE asociados a la configuración de exportación.
- Motor de cálculo de importes por impuestos.
- Generador del asiento de regularización con cargo a un proveedor
"Agencia Estatal de Administración Tributaria" creado al efecto.
- Certificado para las declaraciones de la AEAT
- Webservice AEAT SOAP

**Table of contents**

.. contents::
:local:

Installation
============

Este módulo requiere del módulo account_tax_balance, que está en
OCA/account-financial-reporting y de date_range, en OCA/server-ux.

Configuration
=============

Todos aquellos modelos que se especifiquen en los módulos adicionales y
hereden el AEAT base, deberán definir una variable interna que se llame
'\_aeat_number' asignándole como valor, el número del modelo (130, 340,
347...).

Para poder utilizar el motor genérico de cálculo de casillas por
impuestos (como el 303), hay que heredar del modelo
"l10n.es.aeat.report.tax.mapping" en lugar de "l10n.es.aeat.report".
Para la vista, hay que añadir el campo a mano, ya que la herencia de
vistas no permite una doble herencia de AbstractModel, pero lo que es la
vista tree ya está definida.

Para activar la creación del asiento de regularización en un modelo, hay
que poner en el modelo correspondiente el campo allow_posting a True, y
establecer en la configuración de impuestos los conceptos que se
regularizarán con el flag "to_regularize". Esto sólo es posible sobre
los modelos que utilicen el cálculo de casillas por códigos de
impuestos.

ADVERTENCIA: Debido a que se utiliza una sola tabla para almacenar las
líneas de los impuestos de todos los modelos, hay una limitación en el
ORM de Odoo cuando se coloca el campo one2many de dichas líneas
(tax_line_ids) como dependencia en la definición del cálculo de un campo
(entrada con @api.depends), que recalcula los campos calculados de todos
los modelos con el mismo ID que el del registro en curso, lo que puede
ser un problema en entornos multi-compañía. Una solución a ello (aunque
no evita el recálculo), es poner en esos campos calculados
compute_sudo=True.

Se ha creado el campo base computado error_count en el modelo
l10n.es.aeat.report, cuyo valor dependerá de sus herencias, que
heredarán la función \_compute_error_count para indicar cuantas líneas
con errores hay en el informe. Si el valor es 0, no se mostrará ningún
aviso; si el valor es mayor a 0, se mostrará un aviso en la parte
superior de la vista formulario del informe.

Usage
=====

Para poder visualizar un archivo BOE, hay que:

1. Entrar en *Facturación > Configuración > AEAT > Configuración de
exportación a BOE*.
2. Entrar en el detalle de la configuración de exportación principal
para el modelo.
3. Pulsar en el smart-button "Comparar archivo".
4. Seleccionar el archivo correspondiente y pulsar en "Comparar".
5. Aparecerá una ventana con cada una de las líneas de exportación, la
cadena correspondiente a dicha línea, y si es un importe numérico, su
cifra asociada.

Para importar el certificado, hay que:

1. Entrar en *Facturación > Configuración > AEAT > Certificados*
2. Crear uno nuevo. Rellenas los datos del formulurio y subir el archivo
p12
3. Pulsar obtener claves e introducir la contraseña del certificado

Known issues / Roadmap
======================

- La configuración de exportación a BOE no se filtran ni se
auto-selecciona por fechas de validez.
- Las partes específicas de las Diputaciones Forales no están
incluidas.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Pexego
* Acysos S.L.
* AvanzOSC
* Tecnativa

Contributors
------------

- Pexego (http://www.pexego.es)
- Ignacio Ibeas, Acysos (http://www.acysos.com)
- Pedro M. Baeza <[email protected]>
- Santi Argüeso <[email protected]>
- cubells <[email protected]>
- AvanzOSC (http://www.avanzosc.es)
- Ainara Galdona
- Antonio Espinosa <[email protected]>
- Juan Vicente Pascual <[email protected]>
- Abraham Anes <[email protected]>
- Diagram Software S.L.
- Consultoría Informática Studio 73 S.L.
- Miquel Raïch <[email protected]>
- Iván Antón <[email protected]>
- Digital5 S.L.
- Valentin Vinagre <[email protected]>
- Manuel Regidor <[email protected]>
- Jairo Llopis (https://www.moduon.team)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pedrobaeza|

This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/17.0/l10n_es_aeat>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_es_aeat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import wizard
from .hooks import pre_init_hook
53 changes: 53 additions & 0 deletions l10n_es_aeat/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 2004-2011 Luis Manuel Angueira Blanco - Pexego
# Copyright 2013-2019 Ignacio Ibeas - Acysos S.L. (http://acysos.com)
# Copyright 2015 Ainara Galdona <[email protected]>
# Copyright 2016 Antonio Espinosa <[email protected]>
# Copyright 2018 Juan Vicente Pascual <[email protected]>
# Copyright 2019 Tecnativa - Carlos Dauden
# Copyright 2022 Moduon - Eduardo de Miguel
# Copyright 2024 David Ramia
# Copyright 2013-2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl

{
"name": "AEAT Base",
"summary": "Modulo base para declaraciones de la AEAT",
"version": "17.0.1.0.0",
"author": "Pexego, "
"Acysos S.L., "
"AvanzOSC, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/l10n-spain",
"category": "Accounting & Finance",
"development_status": "Mature",
"depends": ["l10n_es", "account_tax_balance"],
# odoo_test_helper is needed for the tests
"external_dependencies": {"python": ["unidecode", "cryptography"]},
"data": [
"security/aeat_security.xml",
"security/ir.model.access.csv",
"data/aeat_partner.xml",
"data/ir_config_parameter.xml",
"data/aeat_tax_agency_data.xml",
"wizard/export_to_boe_wizard.xml",
"wizard/compare_boe_file_views.xml",
"wizard/aeat_certificate_password_view.xml",
"views/aeat_menuitem.xml", # it should be before the other views
"views/aeat_map_tax_views.xml",
"views/aeat_report_view.xml",
"views/aeat_tax_agency_view.xml",
"views/aeat_tax_line_view.xml",
"views/aeat_export_configuration_view.xml",
"views/account_move_line_view.xml",
"views/res_company_view.xml",
"views/res_partner_view.xml",
"views/aeat_certificate_view.xml",
"views/account_journal_view.xml",
"views/account_move_view.xml",
],
"installable": True,
"maintainers": ["pedrobaeza"],
"pre_init_hook": "pre_init_hook",
}
21 changes: 21 additions & 0 deletions l10n_es_aeat/data/aeat_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="res_partner_aeat" model="res.partner">
<field name="name">Agencia Estatal de Administración Tributaria (AEAT)</field>
<field name="company_id" />
<field name="is_company">1</field>
<field name="city">Madrid</field>
<field name="zip">28020</field>
<field name="country_id" ref="base.es" />
<field name="vat">ESQ2826000H</field>
<field name="street">C/ Lérida 32-34</field>
<field name="phone">91 583 80 72</field>
<field name="website">https://www.agenciatributaria.gob.es</field>
<field
name="image_1920"
type="base64"
file="l10n_es_aeat/static/description/icon.png"
/>
</record>
</odoo>
23 changes: 23 additions & 0 deletions l10n_es_aeat/data/aeat_tax_agency_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2021 Enrique Martin <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="aeat_tax_agency_spain" model="aeat.tax.agency">
<field name="name">Agencia Tributaria española (1.1)</field>
</record>
<record id="aeat_tax_agency_gipuzkoa" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Gipuzkoa (1.1)</field>
</record>
<record id="aeat_tax_agency_bizkaia" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Bizkaia</field>
</record>
<record id="aeat_tax_agency_araba" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Araba</field>
</record>
<record id="aeat_tax_agency_navarra" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Navarra</field>
</record>
<record id="aeat_tax_agency_canarias" model="aeat.tax.agency">
<field name="name">Agencia Tributaria Canaria</field>
</record>
</odoo>
21 changes: 21 additions & 0 deletions l10n_es_aeat/data/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2017 Ignacio Ibeas <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record
id="config_parameter_sii_crt"
model="ir.config_parameter"
forcecreate="True"
>
<field name="key">l10n_es_aeat_certificate.publicCrt</field>
<field name="value">/opt/certificates/publicCert.crt</field>
</record>
<record
id="config_parameter_sii_key"
model="ir.config_parameter"
forcecreate="True"
>
<field name="key">l10n_es_aeat_certificate.privateKey</field>
<field name="value">/opt/certificates/privateKey.pem</field>
</record>
</odoo>
35 changes: 35 additions & 0 deletions l10n_es_aeat/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2022 Acsone SA - Xavier Bouquiaux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging

from odoo import tools
from odoo.tools.sql import column_exists

_logger = logging.getLogger(__name__)


def create_column_thirdparty_invoice(cr):
if not column_exists(
cr, "account_journal", "thirdparty_invoice"
) and not column_exists(cr, "account_move", "thirdparty_invoice"):
_logger.info("Initializing column thirdparty_invoice on table account_move")
tools.create_column(
cr=cr,
tablename="account_move",
columnname="thirdparty_invoice",
columntype="boolean",
comment="Third-party invoice",
)
tools.create_column(
cr=cr,
tablename="account_journal",
columnname="thirdparty_invoice",
columntype="boolean",
comment="Third-party invoice",
)
cr.execute("UPDATE account_move SET thirdparty_invoice = False")
cr.execute("UPDATE account_journal SET thirdparty_invoice = False")


def pre_init_hook(env):
create_column_thirdparty_invoice(env.cr)
Loading
Loading