From c2a5b78bb6abddffc2773a9edad1a3bfe2c4f6cd Mon Sep 17 00:00:00 2001 From: "Dylan Kiss (dyki)" Date: Mon, 17 Oct 2022 14:55:32 +0000 Subject: [PATCH] [IMP] l10n_es: add new 2023 taxes and mod 303 tags - Added tags for the new Modelo 303 tax grids: 150, 152, 153, 155, 156, 158 - Added new 0% and 5% taxes (used for ceratain food and electricity) - Added new 0% and 0.62% Recargo de Equivalencia taxes - Added fiscal position and Modelo 303 tag mappings for all new taxes References: - https://sede.agenciatributaria.gob.es/static_files/Sede/Disenyo_registro/DR_300_399/archivos_23/DR303e23.xlsx - https://www.boe.es/buscar/doc.php?lang=es&id=BOE-A-2022-22685 Thanks to @pedrobaeza for the input task-2993087 closes odoo/odoo#110841 X-original-commit: 30bce8b20a3e8df7cb28107b523f36c1f242100a Related: odoo/enterprise#36216 Signed-off-by: Josse Colpaert Signed-off-by: Dylan Kiss (dyki) --- addons/l10n_es/__manifest__.py | 2 +- .../account_fiscal_position_template_data.xml | 180 ++++++ addons/l10n_es/data/account_tax_data.xml | 536 +++++++++++++++++- .../l10n_es/data/account_tax_group_data.xml | 8 + .../15.0.5.1/post-migrate_update_taxes.py | 7 + 5 files changed, 721 insertions(+), 12 deletions(-) create mode 100644 addons/l10n_es/upgrades/15.0.5.1/post-migrate_update_taxes.py diff --git a/addons/l10n_es/__manifest__.py b/addons/l10n_es/__manifest__.py index ad15d2ea819..f8b961c9c36 100644 --- a/addons/l10n_es/__manifest__.py +++ b/addons/l10n_es/__manifest__.py @@ -14,7 +14,7 @@ { "name" : "Spain - Accounting (PGCE 2008)", - "version" : "5.0", + "version" : "5.1", "author" : "Spanish Localization Team", 'category': 'Accounting/Localizations/Account Charts', "description": """ diff --git a/addons/l10n_es/data/account_fiscal_position_template_data.xml b/addons/l10n_es/data/account_fiscal_position_template_data.xml index c5f78068a09..bc92a92a790 100644 --- a/addons/l10n_es/data/account_fiscal_position_template_data.xml +++ b/addons/l10n_es/data/account_fiscal_position_template_data.xml @@ -164,6 +164,16 @@ + + + + + + + + + + @@ -180,6 +190,16 @@ + + + + + + + + + + @@ -212,6 +232,18 @@ + + + + + + + + + + @@ -224,6 +256,18 @@ + + + + + + + + + + @@ -257,6 +301,16 @@ + + + + + + + + + + @@ -273,6 +327,16 @@ + + + + + + + + + + @@ -305,6 +369,18 @@ + + + + + + + + + + @@ -317,6 +393,18 @@ + + + + + + + + + + @@ -443,6 +531,28 @@ + + + + + + + + + + + + + + + + + + + + @@ -465,6 +575,28 @@ + + + + + + + + + + + + + + + + + + + + @@ -521,6 +653,30 @@ + + + + + + + + + + + + + + + + + + + + @@ -557,6 +713,30 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_es/data/account_tax_data.xml b/addons/l10n_es/data/account_tax_data.xml index 1a0e47acb3b..0373a359bd6 100644 --- a/addons/l10n_es/data/account_tax_data.xml +++ b/addons/l10n_es/data/account_tax_data.xml @@ -50,6 +50,16 @@ taxes + + mod303[150] + taxes + + + + mod303[152] + taxes + + mod303[01] taxes @@ -60,6 +70,16 @@ taxes + + mod303[153] + taxes + + + + mod303[155] + taxes + + mod303[04] taxes @@ -115,6 +135,16 @@ taxes + + mod303[156] + taxes + + + + mod303[158] + taxes + + mod303[16] taxes @@ -968,6 +998,134 @@ }), ]"/> + + + + percent + purchase + IVA 5% Adquisición Intracomunitario. Bienes corrientes + + + + + + + + percent + purchase + IVA 5% Adquisición Intracomunitario. Servicios corrientes + + + + + + + + percent + purchase + IVA 0% Adquisición Intracomunitario. Bienes corrientes + + + + + + + + percent + purchase + IVA 0% Adquisición Intracomunitario. Servicios corrientes + + + + Intracomunitario exento (Servicios) sale @@ -1256,6 +1414,154 @@ }), ]"/> + + purchase + IVA 5% Importaciones bienes corrientes + + + percent + + + + + + purchase + IVA 5% Importaciones servicios corrientes + + + percent + + + + + + purchase + IVA 0% Importaciones bienes corrientes + + + percent + + + + + + purchase + IVA 0% Importaciones servicios corrientes + + + percent + + + + + + purchase + 0% IVA soportado (bienes corrientes) + + + percent + + + + + + purchase + 0% IVA soportado (servicios corrientes) + + + percent + + + + @@ -1320,22 +1626,50 @@ }), ]"/> - - + purchase - 5% IVA soportado + 5% IVA soportado (bienes corrientes) + + + percent + + + + + + + purchase + 5% IVA soportado (servicios corrientes) percent + + 0% Rec. Eq. + sale + 0% Recargo Equivalencia Ventas + + + percent + + + + 0.50% Rec. Eq. sale @@ -1586,6 +1941,37 @@ }), ]"/> + + 0.62% Rec. Eq. + sale + 0.62% Recargo Equivalencia Ventas + + + percent + + + + @@ -1703,6 +2089,50 @@ (0,0, {'repartition_type': 'tax'}), ]"/> + + sale + IVA 0% (Servicios) + + + percent + + + + + + sale + IVA 0% (Bienes) + + + percent + + + + @@ -1738,7 +2168,7 @@ sale - IVA 5% + IVA 5% (Servicios) percent @@ -1747,12 +2177,12 @@ (0,0, { 'factor_percent': 100, 'repartition_type': 'base', - 'tag_ids': [ref('mod_303_01')], + 'tag_ids': [ref('mod_303_153')], }), (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'tag_ids': [ref('mod_303_03')], + 'tag_ids': [ref('mod_303_155')], 'account_id': ref('l10n_es.account_common_477'), }), ]"/> @@ -1770,6 +2200,38 @@ }), ]"/> + + + sale + IVA 5% (Bienes) + + + percent + + + + + @@ -2488,6 +2950,28 @@ }), ]"/> + + purchase + 0% Recargo Equivalencia Compras + + + percent + + + + @@ -2520,6 +3004,36 @@ }), ]"/> + + purchase + 0.62% Recargo Equivalencia Compras + + + percent + + + + @@ -2622,7 +3136,7 @@ ]"/> - Retención 21% (Arrend.) + Retención 21% (Arrend.) sale Retenciones a cuenta 21% (Arrendamientos) diff --git a/addons/l10n_es/data/account_tax_group_data.xml b/addons/l10n_es/data/account_tax_group_data.xml index 44963759a47..a866da49928 100644 --- a/addons/l10n_es/data/account_tax_group_data.xml +++ b/addons/l10n_es/data/account_tax_group_data.xml @@ -5,10 +5,18 @@ IVA 0% + + Recargo de Equivalencia 0% + + Recargo de Equivalencia 0.5% + + Recargo de Equivalencia 0.62% + + Retenciones 1% diff --git a/addons/l10n_es/upgrades/15.0.5.1/post-migrate_update_taxes.py b/addons/l10n_es/upgrades/15.0.5.1/post-migrate_update_taxes.py new file mode 100644 index 00000000000..f0cf8694c68 --- /dev/null +++ b/addons/l10n_es/upgrades/15.0.5.1/post-migrate_update_taxes.py @@ -0,0 +1,7 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo.addons.account.models.chart_template import update_taxes_from_templates + + +def migrate(cr, version): + update_taxes_from_templates(cr, 'l10n_es.account_chart_template_common')