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

[16.0][MIG] l10n_es_aeat_mod296: Migration to 16.0 #3184

Merged
merged 30 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
711e503
[ADD] l10n_es_aeat_mod296: nuevo modulo para sacar el modelo 296
Mar 27, 2015
92c71a3
[FIX+IMP] l10n_es_aeat_mod296: Varios:
pedrobaeza Jun 28, 2015
6ef69dc
[FIX] Corrección cálculo diversos modelos
cubells Sep 29, 2015
880ff53
[IMP] l10n_es_aeat_*: Cálculo de importes de impuestos por cadena en …
pedrobaeza Oct 18, 2015
8542501
[IMP] l10n_es_aeat_mod296
antespi Nov 5, 2015
0bb254a
[FIX] l10n_es_aeat_*: Evitar problemas en campos related no readonly.…
pedrobaeza Feb 11, 2016
b0a9a24
[FIX] l10n_es_aeat_*: Mejor herencia de impuestos
pedrobaeza Feb 11, 2016
cc6828e
Fix inherit problem in Mods 115,216 and 296
jalzaga Mar 4, 2016
8435583
[MIG] l10n_es_aeat_mod296: Migration to 9.0
Jun 26, 2018
472a490
[MIG] l10n_es_aeat_mod296: Migration to 10.0
pedrobaeza Jun 29, 2018
2e65f4e
Translated using Weblate (Spanish)
mvrodriguez Feb 4, 2019
32869c4
[MIG] l10n_es_aeat_mod296: Migration to 11.0
May 20, 2019
6ece411
[MIG] l10n_es_aeat_mod296: Migration to 12.0
pedrobaeza May 23, 2019
e1ad916
[FIX] l10n_es_aeat_mod296: Adapt to l10n_es_irnr
pedrobaeza Jun 10, 2019
8873418
Translated using Weblate (Spanish)
josepmy Jul 24, 2019
499300d
[IMP] l10n_es_aeat: Add chatter + activities to AEAT models
pedrobaeza Sep 18, 2019
a344fda
[UPD] Remove deprecated from_string()
MiquelRForgeFlow Feb 12, 2020
7030f10
[IMP+FIX] l10n_es_aeat: Move get taxes method to company + cleaning i…
pedrobaeza Mar 12, 2020
5e6fdc9
[FIX] l10n_es_aeat_mod296: Configuration section in README
pedrobaeza May 22, 2020
043fb3e
[IMP] l10n_es_aeat_mod296: black, isort, prettier
victoralmau Jul 2, 2021
61efe88
[MIG] l10n_es_aeat_mod296: Migration to 13.0
victoralmau Jul 2, 2021
51b2f73
[FIX] l10n_es_aeat_mod296: Multi-company rules migration script.
victoralmau Jun 8, 2022
6e705af
[MIG] l10n_es_aeat_mod296: Migration to 15.0
victoralmau Nov 25, 2022
bdf7944
[UPD] Update l10n_es_aeat_mod296.pot
Nov 30, 2022
c19370d
[UPD] README.rst
OCA-git-bot Nov 30, 2022
8d00a4e
Update translation files
weblate Nov 30, 2022
538227e
[UPD] Update l10n_es_aeat_mod296.pot
May 16, 2023
ef0e28c
Update translation files
weblate May 17, 2023
8ca16f2
[IMP] l10n_es_aeat_mod296: pre-commit stuff
polqubiq Aug 7, 2023
0625ea6
[MIG] l10n_es_aeat_mod296: Migration to 16.0
polqubiq Aug 7, 2023
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
117 changes: 117 additions & 0 deletions l10n_es_aeat_mod296/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
===============
AEAT modelo 296
===============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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/15.0/l10n_es_aeat_mod296
: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-15-0/l10n-spain-15-0-l10n_es_aeat_mod296
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/189/15.0
:alt: Try me on Runbot

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

Modelo 296 de la AEAT. Declaración Informativa. Retenciones e ingresos a
cuenta del Impuesto sobre la Renta de no Residentes (sin establecimiento
permanente). Resumen anual.

**Table of contents**

.. contents::
:local:

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

Debemos indicar los proveedores que son no residentes, en la ficha de la
empresa:

#. Vaya a *Contactos*.
#. Entrando al correspondiente, en la pestaña "Ventas y compras", seleccione en
la posición fiscal la "Retención IRPF No residentes" que le corresponda.
#. Al crear facturas para dicho contacto, se mapearán los impuestos necesarios
siempre que la línea de la factura tenga el producto informado con el
impuesto nacional adecuado.

Usage
=====

Para crear un modelo, por ejemplo de un trimestre del año:

1. Ir a Contabilidad > Informe > Informes legales > Declaraciones AEAT > Modelo 296
2. Pulsar en el botón "Crear"
3. Seleccionar el ejercicio fiscal y el tipo de período, los periodos incluidos
se calculan automáticamente
4. Seleccionar el tipo de declaración
5. Rellenar el teléfono, necesario para la exportacion BOE
6. Guardar y pulsar en el botón "Calcular"
7. Rellenar (si es necesario) aquellos campos que Odoo no calcula automáticamente:

* Retenciones ingresadas: Casilla [04]

8. Cuando los valores sean los correctos, pulsar en el botón "Confirmar"
9. Podemos exportar en formato BOE para presentarlo telemáticamente en el portal
de la AEAT

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_mod296%0Aversion:%2015.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
~~~~~~~

* Tecnativa
* AvanzOSC
* Qubiq

Contributors
~~~~~~~~~~~~

* Ainara Galdona <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Antonio Espinosa
* Victor M.M. Torres

* Valentin Vinagre <[email protected]>

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.

This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/15.0/l10n_es_aeat_mod296>`_ 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_mod296/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
24 changes: 24 additions & 0 deletions l10n_es_aeat_mod296/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright AvanzOSC - Ainara Galdona
# Copyright 2016 - Tecnativa - Antonio Espinosa
# Copyright 2016-2019 - Tecnativa - Pedro M. Baeza
# Copyright 2018 Valentin Vinagre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "AEAT modelo 296",
"version": "16.0.1.0.0",
"category": "Localisation/Accounting",
"author": "Tecnativa, AvanzOSC, Qubiq, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"license": "AGPL-3",
"depends": ["l10n_es_aeat", "l10n_es_aeat_mod216"],
"data": [
"security/ir.model.access.csv",
"data/tax_code_map_mod296_data.xml",
"data/aeat_export_mod296_line_data.xml",
"data/aeat_export_mod296_data.xml",
"views/mod296_views.xml",
"security/ir_rule.xml",
],
"installable": True,
}
219 changes: 219 additions & 0 deletions l10n_es_aeat_mod296/data/aeat_export_mod296_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2018 Valentin Vinagre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- MAIN-296 -->
<record id="aeat_mod296_main_export_config" model="aeat.model.export.config">
<field name="name">Mod.296</field>
<field name="model_number">296</field>
<field
name="model_id"
ref="l10n_es_aeat_mod296.model_l10n_es_aeat_mod296_report"
/>
</record>
<record id="aeat_mod296_main_export_line_01" model="aeat.model.export.config.line">
<field name="sequence">1</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Constante: tipo de registro</field>
<field name="fixed_value">1</field>
<field name="export_type">string</field>
<field name="size">1</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_02" model="aeat.model.export.config.line">
<field name="sequence">2</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: modelo</field>
<field name="fixed_value">296</field>
<field name="export_type">string</field>
<field name="size">3</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_03" model="aeat.model.export.config.line">
<field name="sequence">3</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: ejercicio</field>
<field name="expression">${object.year}</field>
<field name="export_type">string</field>
<field name="size">4</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_04" model="aeat.model.export.config.line">
<field name="sequence">4</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: nif declarante</field>
<field name="expression">${object.company_vat}</field>
<field name="export_type">string</field>
<field name="size">9</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_05" model="aeat.model.export.config.line">
<field name="sequence">5</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: Apellidos o razón social</field>
<field name="expression">${object.company_id.name}</field>
<field name="export_type">string</field>
<field name="size">40</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_06" model="aeat.model.export.config.line">
<field name="sequence">6</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: Tipo de soporte</field>
<field name="expression">${object.support_type}</field>
<field name="export_type">string</field>
<field name="size">1</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_07" model="aeat.model.export.config.line">
<field name="sequence">7</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Persona con quien relacionarse: teléfono</field>
<field name="expression">${object.contact_phone}</field>
<field name="export_type">string</field>
<field name="size">9</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_08" model="aeat.model.export.config.line">
<field name="sequence">8</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Persona con quien relacionarse: apellidos y nombre</field>
<field name="expression">${object.contact_name}</field>
<field name="export_type">string</field>
<field name="size">40</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_09" model="aeat.model.export.config.line">
<field name="sequence">9</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Número identificativo de la declaración</field>
<field name="expression">${object.name}</field>
<field name="export_type">string</field>
<field name="size">13</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_10" model="aeat.model.export.config.line">
<field name="sequence">10</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Complementaria - Declaración complementaria</field>
<field name="expression">${object.statement_type == 'C'}</field>
<field name="export_type">boolean</field>
<field name="size">1</field>
<field name="bool_yes">X</field>
<field name="bool_no"> </field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_11" model="aeat.model.export.config.line">
<field name="sequence">11</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Complementaria - Declaración sustitutiva</field>
<field name="expression">${object.statement_type == 'S'}</field>
<field name="export_type">boolean</field>
<field name="size">1</field>
<field name="bool_yes">X</field>
<field name="bool_no"> </field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_12" model="aeat.model.export.config.line">
<field name="sequence">12</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field
name="name"
>Complementaria - Número justificante declaración anterior</field>
<field
name="expression"
>${object.previous_number if object.statement_type in ('C','S') else ''}</field>
<field name="export_type">string</field>
<field name="size">13</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_13" model="aeat.model.export.config.line">
<field name="sequence">13</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Número total de perceptores[01]</field>
<field name="expression">${object.casilla_01}</field>
<field name="export_type">integer</field>
<field name="size">9</field>
<field name="alignment">right</field>
</record>
<record id="aeat_mod296_main_export_line_14" model="aeat.model.export.config.line">
<field name="sequence">14</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Base retenciones e ingresos a cuenta[02]</field>
<field name="expression">${object.casilla_02}</field>
<field name="export_type">float</field>
<field name="apply_sign" eval="True" />
<field name="size">15</field>
<field name="decimal_size">2</field>
<field name="alignment">right</field>
</record>
<record id="aeat_mod296_main_export_line_15" model="aeat.model.export.config.line">
<field name="sequence">15</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Base retenciones e ingresos a cuenta[03]</field>
<field name="expression">${object.casilla_03}</field>
<field name="export_type">float</field>
<field name="apply_sign" eval="False" />
<field name="size">14</field>
<field name="decimal_size">2</field>
<field name="alignment">right</field>
</record>
<record id="aeat_mod296_main_export_line_16" model="aeat.model.export.config.line">
<field name="sequence">16</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Base retenciones e ingresos a cuenta[04]</field>
<field name="expression">${object.casilla_04}</field>
<field name="export_type">float</field>
<field name="apply_sign" eval="False" />
<field name="size">14</field>
<field name="decimal_size">2</field>
<field name="alignment">right</field>
</record>
<record id="aeat_mod296_main_export_line_17" model="aeat.model.export.config.line">
<field name="sequence">17</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Espacios en blanco</field>
<field name="fixed_value" />
<field name="export_type">string</field>
<field name="size">201</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_18" model="aeat.model.export.config.line">
<field name="sequence">18</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Identificación: nif representante legal</field>
<field name="expression">${object.representative_vat}</field>
<field name="export_type">string</field>
<field name="size">9</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_19" model="aeat.model.export.config.line">
<field name="sequence">19</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Espacios en blanco</field>
<field name="fixed_value" />
<field name="export_type">string</field>
<field name="size">88</field>
<field name="alignment">left</field>
</record>
<record id="aeat_mod296_main_export_line_20" model="aeat.model.export.config.line">
<field name="sequence">20</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Reservado para la administración: Sello electrónico</field>
<field name="fixed_value" />
<field name="export_type">string</field>
<field name="size">13</field>
<field name="alignment">left</field>
</record>
<!-- Tipo de Registro 2 – Registro de perceptor -->
<record id="aeat_mod296_main_export_line_21" model="aeat.model.export.config.line">
<field name="sequence">21</field>
<field name="export_config_id" ref="aeat_mod296_main_export_config" />
<field name="name">Tipo de Registro 2 – Registro de perceptor</field>
<field name="subconfig_id" ref="aeat_mod296_sub01_export_config" />
<field name="export_type">subconfig</field>
<field name="repeat_expression">object.lines296</field>
</record>
</odoo>
Loading
Loading