-
-
Notifications
You must be signed in to change notification settings - Fork 557
[17.0][ADD] l10n es aeat mod180 #4232
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
Open
carlossainznetkia
wants to merge
3
commits into
OCA:17.0
Choose a base branch
from
carlossainznetkia:17.0-ADD-l10n_es_aeat_mod180
base: 17.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,869
−0
Open
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
=============== | ||
AEAT Modelo 180 | ||
=============== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:0177545ac511a123457de5e40bf122bb31c0aa48fe57e7b958cca4d60406c02a | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |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/17.0/l10n_es_aeat_mod180 | ||
: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_mod180 | ||
: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| | ||
|
||
Modelo 180 de la AEAT. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Para crear un modelo, por ejemplo de un año: | ||
|
||
1. Ir a Facturación > Declaraciones AEAT > Modelo 180 | ||
2. Pulsar en el botón "Crear" | ||
3. Seleccionar el ejercicio fiscal | ||
4. Seleccionar el tipo de declaración | ||
5. Se autorrellena el teléfono,el teléfono móvil y el correo electrónico | ||
del usuario, necesarios para la exportacion BOE | ||
6. Guardar y pulsar en el botón "Calcular" | ||
7. Rellenar aquellos campos que Odoo no calcula automáticamente: | ||
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 to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_mod180%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 | ||
------- | ||
|
||
* Netkia Soluciones SLU | ||
|
||
Contributors | ||
------------ | ||
|
||
- ``Netkia <https://www.netkia.es>``\ \_\_: | ||
|
||
- Hugo Martínez [email protected] | ||
- Marián Cuadra [email protected] | ||
- Carlos Sainz-Pardo [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/17.0/l10n_es_aeat_mod180>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2025 Netkia - Carlos Sainz-Pardo | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
{ | ||
"name": "AEAT Modelo 180", | ||
"summary": "AEAT Modelo 180", | ||
"author": "Netkia Soluciones SLU, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/OCA/l10n-spain", | ||
"version": "17.0.1.0.0", | ||
"depends": [ | ||
"l10n_es_aeat_mod115", | ||
], | ||
"data": [ | ||
"data/aeat_export_mod180_line_data.xml", | ||
"data/aeat_export_mod180_data.xml", | ||
"security/ir.model.access.csv", | ||
"security/l10n_es_aeat_mod180_security.xml", | ||
"views/res_partner_views.xml", | ||
"views/mod180_view.xml", | ||
"views/account_move_views.xml", | ||
"views/account_move_line_views.xml", | ||
"views/recipient_record_views.xml", | ||
"views/l10n_es_aeat_real_estate_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<!-- MAIN 180 --> | ||
<record id="aeat_mod_180_main_export_config" model="aeat.model.export.config"> | ||
<field name="name">Modelo 180</field> | ||
<field name="model_number">180</field> | ||
<field name="date_start">2016-01-01</field> | ||
<field | ||
name="model_id" | ||
ref="l10n_es_aeat_mod180.model_l10n_es_aeat_mod180_report" | ||
/> | ||
</record> | ||
<!-- 1. Tipo de registro--> | ||
<record id="aeat_mod_180_main_export_line_01" model="aeat.model.export.config.line"> | ||
<field name="sequence">1</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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> | ||
<!-- 2. Modelo declaracion--> | ||
<record id="aeat_mod_180_main_export_line_02" model="aeat.model.export.config.line"> | ||
<field name="sequence">2</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Identificacion: modelo</field> | ||
<field name="fixed_value">180</field> | ||
<field name="export_type">string</field> | ||
<field name="size">3</field> | ||
<field name="alignment">left</field> | ||
</record> | ||
<!-- 3. Ejercicio--> | ||
<record id="aeat_mod_180_main_export_line_03" model="aeat.model.export.config.line"> | ||
<field name="sequence">3</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Identificacion: 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> | ||
<!-- 4. NIF declarante--> | ||
<record id="aeat_mod_180_main_export_line_04" model="aeat.model.export.config.line"> | ||
<field name="sequence">4</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Identificacion: 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> | ||
<!-- 5. Apellidos y nombre, razon social del declarante--> | ||
<record id="aeat_mod_180_main_export_line_05" model="aeat.model.export.config.line"> | ||
<field name="sequence">5</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Identificacion: Apellidos o razon 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> | ||
<!-- 6. Tipo de soporte--> | ||
<record id="aeat_mod_180_main_export_line_06" model="aeat.model.export.config.line"> | ||
<field name="sequence">6</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Identificacion: 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> | ||
<!-- 7. Persona con quien relacionarse: Telefono--> | ||
<record id="aeat_mod_180_main_export_line_07" model="aeat.model.export.config.line"> | ||
<field name="sequence">7</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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> | ||
<!-- 8. Persona con quien relacionarse: Apellidos y nombre--> | ||
<record id="aeat_mod_180_main_export_line_08" model="aeat.model.export.config.line"> | ||
<field name="sequence">8</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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> | ||
<!-- 9. Numero identificativo de la declaracion--> | ||
<record id="aeat_mod_180_main_export_line_09" model="aeat.model.export.config.line"> | ||
<field name="sequence">9</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Numero 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> | ||
<!-- 10. Declaracion complementaria--> | ||
<record id="aeat_mod_180_main_export_line_10" model="aeat.model.export.config.line"> | ||
<field name="sequence">10</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Complementaria - Declaracion 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> | ||
<!-- 11. Declaracion sustitutiva--> | ||
<record id="aeat_mod180_main_export_line_11" model="aeat.model.export.config.line"> | ||
<field name="sequence">11</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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> | ||
<!-- 12. Numero identificativo de la declaracion anterior--> | ||
<record id="aeat_mod180_main_export_line_12" model="aeat.model.export.config.line"> | ||
<field name="sequence">12</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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 ('S', 'C') else '0000000000000'}</field> | ||
<field name="export_type">string</field> | ||
<field name="size">13</field> | ||
<field name="alignment">left</field> | ||
</record> | ||
<!-- 13. Numero total de perceptores--> | ||
<record id="aeat_mod180_main_export_line_13" model="aeat.model.export.config.line"> | ||
<field name="sequence">13</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Número total de perceptores</field> | ||
<field name="expression">${object.casilla_01}</field> | ||
<field name="export_type">integer</field> | ||
<field name="size">9</field> | ||
<field name="alignment">right</field> | ||
<field name="apply_sign">False</field> | ||
</record> | ||
<!-- 14. Base retenciones e ingresos a cuenta: Signo --> | ||
<record id="aeat_mod180_main_export_line_14" model="aeat.model.export.config.line"> | ||
<field name="sequence">14</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Base retenciones e ingresos a cuenta: Signo</field> | ||
<field name="expression">${object.sign}</field> | ||
<field name="export_type">string</field> | ||
<field name="size">1</field> | ||
<field name="alignment">right</field> | ||
</record> | ||
<!-- 15. Base retenciones e ingresos a cuenta: Importe --> | ||
<record id="aeat_mod180_main_export_line_15" model="aeat.model.export.config.line"> | ||
<field name="sequence">15</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Base retenciones e ingresos a cuenta: Importe</field> | ||
<field name="expression">${object.casilla_02}</field> | ||
<field name="export_type">float</field> | ||
<field name="size">15</field> | ||
<field name="decimal_size">2</field> | ||
<field name="alignment">right</field> | ||
<field name="apply_sign">False</field> | ||
</record> | ||
<!-- 16. Retenciones a ingresos a cuenta--> | ||
<record id="aeat_mod180_main_export_line_16" model="aeat.model.export.config.line"> | ||
<field name="sequence">16</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Retenciones e ingresos a cuenta[03]</field> | ||
<field name="expression">${object.casilla_03}</field> | ||
<field name="export_type">float</field> | ||
<field name="size">15</field> | ||
<field name="decimal_size">2</field> | ||
<field name="alignment">right</field> | ||
<field name="apply_sign">False</field> | ||
</record> | ||
<!-- 17. Espacios en blanco --> | ||
<record id="aeat_mod180_main_export_line_17" model="aeat.model.export.config.line"> | ||
<field name="sequence">17</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field name="name">Espacios en blanco</field> | ||
<field name="fixed_value" /> | ||
<field name="export_type">string</field> | ||
<field name="size">62</field> | ||
<field name="alignment">left</field> | ||
</record> | ||
<!-- 18. Sello electronico--> | ||
<record id="aeat_mod180_main_export_line_18" model="aeat.model.export.config.line"> | ||
<field name="sequence">18</field> | ||
<field name="export_config_id" ref="aeat_mod_180_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">263</field> | ||
<field name="alignment">left</field> | ||
</record> | ||
<!-- Registros de perceptores--> | ||
<record id="aeat_mod180_main_export_line_19" model="aeat.model.export.config.line"> | ||
<field name="sequence">19</field> | ||
<field name="export_config_id" ref="aeat_mod_180_main_export_config" /> | ||
<field | ||
name="name" | ||
>Exportación modelo 180 - Tipo de Registro 1 – Registro de perceptor</field> | ||
<field name="subconfig_id" ref="aeat_mod180_sub01_export_config" /> | ||
<field name="export_type">subconfig</field> | ||
<field name="repeat_expression">object.recipient_record_ids</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.