Skip to content

Commit

Permalink
[ADD] l10n_es_igic_reav: reav fiscal data for canary localization
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDIXMIT committed Oct 7, 2024
1 parent 4f7a1ec commit e78baf5
Show file tree
Hide file tree
Showing 14 changed files with 644 additions and 0 deletions.
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_reav","REAV - Travel agencies","REAV - Agencias de viajes","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_reav","REAV - Travel agencies","REAV - Agencias de viajes","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
47 changes: 47 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,47 @@
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(
"es_pymes_canary", "account.tax", module="l10n_es_igic_reav"
)
return additional

@template("es_pymes_canary", "account.fiscal.position")
def _get_es_pymes_canary_account_fiscal_position_reav(self):
additional = self._parse_csv(
"es_pymes_canary", "account.fiscal.position", module="l10n_es_igic_reav"
)
new_tax_ids = additional["fp_reav"]["tax_ids"]
origin_fp = self._parse_csv(
"es_common", "account.fiscal.position", module="l10n_es_reav"
)
origin_fp["fp_reav"]["tax_ids"] = origin_fp["fp_reav"]["tax_ids"] + new_tax_ids
return origin_fp

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

@template("es_full_canary", "account.fiscal.position")
def _get_es_full_canary_account_fiscal_position_reav(self):
additional = self._parse_csv(
"es_full_canary", "account.fiscal.position", module="l10n_es_igic_reav"
)
new_tax_ids = additional["fp_reav"]["tax_ids"]
origin_fp = self._parse_csv(
"es_common", "account.fiscal.position", module="l10n_es_reav"
)
origin_fp["fp_reav"]["tax_ids"] = origin_fp["fp_reav"]["tax_ids"] + new_tax_ids
return origin_fp
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

0 comments on commit e78baf5

Please sign in to comment.