Skip to content

Commit

Permalink
Merge PR #3184 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 29, 2023
2 parents 3afd1ad + 0625ea6 commit a41fbe8
Show file tree
Hide file tree
Showing 27 changed files with 3,974 additions and 0 deletions.
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

0 comments on commit a41fbe8

Please sign in to comment.