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] [ADD] l10n_es_igic_reav: reav fiscal data for canary localization #3756

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
79 changes: 79 additions & 0 deletions l10n_es_igic_reav/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
=================
L10n Es Igic Reav
=================

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

.. |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_igic_reav
: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_igic_reav
: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|

Este módulo añade los impuestos necesarios en la localización fiscal
canaria para adaptarlo a los casos en que se aplique el REAV.

**Table of contents**

.. contents::
:local:

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_igic_reav%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
-------

* Dixmit

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

- `Dixmit <https://www.dixmit.com>`__:

- Luis Rodríguez

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_igic_reav>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_es_igic_reav/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions l10n_es_igic_reav/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 Dixmit
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "L10n Es Igic Reav",
"summary": """Este addon añade a la contabilidad los impuestos
y posiciones fiscales para la localización canaria.""",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Dixmit,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"depends": ["l10n_es_igic", "l10n_es_reav"],
"data": [],
"demo": [],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"id","name","name@es","name@ca","country_id","tax_ids/tax_src_id","tax_ids/tax_dest_id","account_ids/account_src_id","account_ids/account_dest_id"
"fp_igic_reav","IGIC REAV - Travel agencies","IGIC REAV - Agencias de viajes","IGIC REAV - Agències de viatges","","account_tax_template_p_igic0_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic0_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic3_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic3_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic7_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic7_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic95_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic95_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic15_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic15_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic20_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic20_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_s_igic0b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic0s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic3b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic3s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic7b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic7s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic95b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic95s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic15b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic15s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic20b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic20s","account_tax_template_s_igic_reav0","",""
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"id","name","name@es","name@ca","country_id","tax_ids/tax_src_id","tax_ids/tax_dest_id","account_ids/account_src_id","account_ids/account_dest_id"
"fp_igic_reav","IGIC REAV - Travel agencies","IGIC REAV - Agencias de viajes","IGIC REAV - Agències de viatges","","account_tax_template_p_igic0_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic0_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic3_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic3_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic7_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic7_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic95_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic95_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic15_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic15_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic20_bc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_p_igic20_sc","account_tax_template_p_igic_reav0","",""
"","","","","","account_tax_template_s_igic0b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic0s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic3b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic3s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic7b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic7s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic95b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic95s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic15b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic15s","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic20b","account_tax_template_s_igic_reav0","",""
"","","","","","account_tax_template_s_igic20s","account_tax_template_s_igic_reav0","",""
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"id","name","name@es","name@ca","type_tax_use","amount","amount_type","description","description@es","description@ca","active","invoice_label","tax_group_id","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/tag_ids","repartition_line_ids/account_id","repartition_line_ids/factor_percent"
"account_tax_template_p_igic_reav0","IGIC REAV non-deductible","IGIC Soportado no deducible REAV","IGIC Suportat no deduïble REAV","purchase","0.00","percent","P_IGIC_REAV","P_IGIC_REAV","P_IGIC_REAV","True","","tax_group_reav","base","invoice","","","100"
"","","","","","","","","","","","","","tax","invoice","","","100"
"","","","","","","","","","","","","","base","refund","","","100"
"","","","","","","","","","","","","","tax","refund","","","100"
"account_tax_template_s_igic_reav0","IGIC REAV included","IGIC Repercutido incluido REAV","IGIC Repercutit inclòs REAV","sale","0.00","percent","S_IGIC_REAV","S_IGIC_REAV","S_IGIC_REAV","True","","tax_group_reav","base","invoice","","","100"
"","","","","","","","","","","","","","tax","invoice","","","100"
"","","","","","","","","","","","","","base","refund","","","100"
"","","","","","","","","","","","","","tax","refund","","","100"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"id","name","name@es","name@ca","type_tax_use","amount","amount_type","description","description@es","description@ca","active","invoice_label","tax_group_id","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/tag_ids","repartition_line_ids/account_id","repartition_line_ids/factor_percent"
"account_tax_template_p_igic_reav0","IGIC REAV non-deductible","IGIC Soportado no deducible REAV","IGIC Suportat no deduïble REAV","purchase","0.00","percent","P_IGIC_REAV","P_IGIC_REAV","P_IGIC_REAV","True","","tax_group_reav","base","invoice","","","100"
"","","","","","","","","","","","","","tax","invoice","","","100"
"","","","","","","","","","","","","","base","refund","","","100"
"","","","","","","","","","","","","","tax","refund","","","100"
"account_tax_template_s_igic_reav0","IGIC REAV included","IGIC Repercutido incluido REAV","IGIC Repercutit inclòs REAV","sale","0.00","percent","S_IGIC_REAV","S_IGIC_REAV","S_IGIC_REAV","True","","tax_group_reav","base","invoice","","","100"
"","","","","","","","","","","","","","tax","invoice","","","100"
"","","","","","","","","","","","","","base","refund","","","100"
"","","","","","","","","","","","","","tax","refund","","","100"
1 change: 1 addition & 0 deletions l10n_es_igic_reav/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_chart_template
35 changes: 35 additions & 0 deletions l10n_es_igic_reav/models/account_chart_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from odoo import models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = "account.chart.template"

# es_pymes_canary chart
@template("es_pymes_canary", "account.tax")
def _get_es_pymes_canary_account_tax_reav(self):
additional = self._parse_csv(

Check warning on line 12 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L12

Added line #L12 was not covered by tests
"es_pymes_canary", "account.tax", module="l10n_es_igic_reav"
)
return additional

Check warning on line 15 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L15

Added line #L15 was not covered by tests

@template("es_pymes_canary", "account.fiscal.position")
def _get_es_pymes_canary_account_fiscal_position_reav(self):
return self._parse_csv(

Check warning on line 19 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L19

Added line #L19 was not covered by tests
"es_pymes_canary", "account.fiscal.position", module="l10n_es_igic_reav"
)

# es_full_canary chart
@template("es_full_canary", "account.tax")
def _get_es_full_canary_account_tax_reav(self):
additional = self._parse_csv(

Check warning on line 26 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L26

Added line #L26 was not covered by tests
"es_full_canary", "account.tax", module="l10n_es_igic_reav"
)
return additional

Check warning on line 29 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L29

Added line #L29 was not covered by tests

@template("es_full_canary", "account.fiscal.position")
def _get_es_full_canary_account_fiscal_position_reav(self):
return self._parse_csv(

Check warning on line 33 in l10n_es_igic_reav/models/account_chart_template.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic_reav/models/account_chart_template.py#L33

Added line #L33 was not covered by tests
"es_full_canary", "account.fiscal.position", module="l10n_es_igic_reav"
)
3 changes: 3 additions & 0 deletions l10n_es_igic_reav/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions l10n_es_igic_reav/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Dixmit](https://www.dixmit.com):
- Luis Rodríguez
1 change: 1 addition & 0 deletions l10n_es_igic_reav/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Este módulo añade los impuestos necesarios en la localización fiscal canaria para adaptarlo a los casos en que se aplique el REAV.
Binary file added l10n_es_igic_reav/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading